Game Maker's Blog: N - Type

Sunday, January 08, 2006

The Enemy - Wave02: StopShips

For this attack wave, I wanted the ships to come from the top, stop, then fire at the player. I achieved this by having them move downwards as soon as they are created, then used an alarm to stop the movement at a random time, this made sure that the ships didn't all stop along the same line. In the Step Event I used image_angle (another good reason to register) to alway's point the gun towards the player (I had to put the StopShip's x position at the end of the gun). While the StopShips were on screen, I had them fire off a bullet at random intervals towards the player's position.

0 Comments:

Post a Comment

<< Home