-
Rapid Fire problem
mkay, i got an action for an enemy to fire three rounds off every 2 seconds like this:
every 2 sec
>>>>>>>>>>> Start Loop "Enemy Fire" 3 times
then second part
On "Enemy Fire"
>>>>>>>>>>>>>>>>> Enemy Shoot object
i run the script and the enemy fires all threee bullets at the exact same time making it appear that the enemy only shot one bullet, i need to know how to do a rapid succession so that the bullets are all behind on another not on top of each other.
help would be greatly appriciated. thanks.
-
Re: Rapid Fire problem
+Every X seconds
+Alt Var < 4
-Star Loop "Enemy Fire"
+On loop "Enemy Fire"
-Enemy Shoot Object
-Add 1 to Alt Var (make an alt variable to keep count of the number of bullets fired)
Then make sure you set the alt var to 0 when the enemy goes to shoot again.
-
Re: Rapid Fire problem
still fires the bullets all at the same time. i need it to fire off about three of them one after another if that clarifies anything.
-
Re: Rapid Fire problem
Fastloops run before frames are drawn, so looping three times will create three bullets in exactly the same place. You might want to set a value that acts as a timer going (add 1 to it if its value is already above 0, for example, and start the sequence by setting the value to 1), and create a bullet when it reaches 10, 20 and 30 (resetting it to 0 when it's at 40).
-
Re: Rapid Fire problem
that worked pretty darn good, thanks again Dave!