Hey guys im building my first QT C++ game and i hope ill get some help in a problem i have encountered
im trying to make group of spaceships in a line, that moves from one side of the screen to the other.
now when i built it i have defined that if spaceship x() != 1000 keep moving right if it does go left. but they cross eachother and each one of them has to reach the x() == 1000 to change direction.
now i want to them to move as a group if the most left spaceship reached the maximum space of the right side of the screen they all start move left and so..
https://github.com/SeanR11/Spaceship---first-game
here is my code on github hope u can read and come with a solution ty.!