I have to programm something for a class. Ive gone for a little shooting game.
The Targets spwwawn either on the right or left side of the screen. That i have got working
Now I need them to move in a straight line across the screen. The ones that spawn on the left to the right and vice versa.
They get destroyed when they get to the other side(got that working too)
With move() they automaticly go from left to right, but how do I di it the other way around.
And how do I differentiate between the two types, so no one goes in the wrong direction. Like "when spawned right go left and the other way around".
How could I do this? Dont need a detailed answer, just a rough tipp with what methods and stuff like that thats possible.
I think with a good tipp i can figure this out but im kind of stuck right now.



