Hi everyone!
I’ve been following a tutorial on asgamer.com but changing and removing various things to fit to the game I am (very, very slowly) trying to make. I am attempting to make an up-side-down Space Invaders like game, but with balloons instead of aliens.
So far (by following the tutorials and being lucky) I have managed to make the player’s ship which moves by pressing the arrow keys and can shoot two (blue) lasers when the spacebar is pressed. The enemy balloons randomly appear below the bottom of the screen and shoot a laser upwards towards the player’s ship when the player goes above (Y axis I think) any balloons.
The problem is that the balloons fire a massive stream of shots (red lasers), but I want to delay each next shot by a few seconds, but the time of the delay doesn’t matter because I’ll tweak it later.
I’ve been trying to make delays for the balloon lasers by copy/pasting bits of code from Ship.as in an attempt to make it work
…Maybe it’s a good time to say I am a complete noob at AS3 apart from when it comes to messing up and having no idea what is going on
I’ve attached my current (broken) work and a working SWF of before trying to add delays to the balloons shots. If you want to see it working first hand then replace the Balloon.as in actionscript.game with the Balloon(working).as and change the filename to Balloon.as.
If you can help me out then thankyou very, very, VERY much for your time