# Completely stumped

**URL:** <https://forum.kirupa.com/t/completely-stumped/317384>\
**Category:** flash\
**Created:** [December 18, 2010, 2:12pm UTC](https://forum.kirupa.com/t/completely-stumped/317384 "2010-12-18T14:12:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Metroid756](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@Metroid756](https://forum.kirupa.com/u/Metroid756)\
**Post date:** [December 18, 2010, 2:12pm UTC](https://forum.kirupa.com/t/completely-stumped/317384/1 "2010-12-18T14:12:46Z")

</div>

Hi everyone!

I’ve been following a tutorial on [asgamer.com](http://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 😃
