Hello, I'm trying to make a game similar to SpaceInvader. I need all the aliens on the screen to move horizontally with the following logic: When one strikes the left edge of layout, all aliens change moving to the right, and when they strikes with the right edge, everyone started to move right.
I've been trying to make them change their direction when they hit the edges but without changing their angles but I could not do it. The Alien type has the "bullet" and when i change your moving direction by modifying the angle, are flipped vertically. Thanks and sorry for bad english.