Hello, I'm making a top-down shooter and am trying to have the character shoot a fully automatic weapon instead of having to click for every shot. I want to be able to hold down left mouse button to shoot the weapon at a certain pace.
I've tried : Event : Mouse : Left mouse is held down : Action : System : wait 0.2 seconds
Action : 'Commando' : spawn object : bullet
Unfortunately, this only created a delay for the time before the 'Commando' starts firing. It want the player to be able to hold down left-click and be able to shoot, say, 1 bullet per 0.2 seconds.
Develop games in your browser. Powerful, performant & highly capable.
With a timer:
find your answer here
https://www.dropbox.com/sh/eioscti86bpr ... 7YPza?dl=0
Thanks a lot for the feedback, but I've run into another similar problem. This time I have an enemy that spits acid at you but I can't seem to find a way to make them shoot independently at a constant rate. I've tried timers but I'm not sure if I did them right so now I'm using System : Every 1.0 seconds + Sprite : Is on screen and the action Sprite : spawn spit to make them fire. The problem is that they all shoot at the same time .
Help? A contruct 2 example would be SO helpful. Thank you!
Maybe this is something you can use —