back to the original page

9. Creating ground turret

Previously created enemies were airborne, so this time create a ground turret
Keep the project file created in the previous tutorial open

Create characters and scripts

Create a script with the character of the ground turret and set the parameters as shown in the figure to the right The name will be 'TURRET'

Creating a Script

Place the rotation panel from the move group and the shot panel from the attack group as shown on the right

Edit the contents of the panel

Rotate to face the player's direction
Wait for 30 frames to rotate over 30 frames and thus also 30 frames
Fires enemy bullets 'SHOOT' at your plane

Back to top of page