A movement to aid with the creation of games based on the classic Space Invaders. The movement controls the invaders, making them change direction when reaching the edge of the screen, and even speeding them up as their numbers decrease.
Apply the movement to the objects in the frame editor and configure the initial direction of the invaders, step size and speed (how often they step) Note these properties are shared by all objects in the frame with the movement, it is only required to set them once. That's it! If you need to change the location of the point when the invaders change direction then insert the movement's control extension into the frame and apply the appropriate settings. Note the automatic speed increase setting is provided for newer users, in most cases you should use the control extension to set the movement speed from the events as needed for your game.
Figure 1: Movement properties for the Invaders Movement.
Global Invaders Properties
These properties are shared by all objects with Invaders movement in the current frame. Therefore changing the values in one
object will also change the values in all other objects with this movement.
Move at start: Defines if the movement starts when the frame does or if the movement is initially paused.
Automatically handle speed increase: Select this option and the invaders will increase in speed as their number reduce.
Initial Direction: Will the invader move left or right first?
Step Size X: The amount in pixels the invaders hop each move in the x-axis.
Step Size Y: The amount in pixels the invaders hop each move in the y-axis.
Speed: How often will the invaders hop.
Note: due to a bug, the Invaders / Get Speed function of the Movement Controller object actually returns 101 - speed,
and you have to pass 101 - speed to Invaders / Set Speed.