Greetings.
I would like to know what is the simplest way to execute an action x seconds after the condition has been written.
for example :
keyboard - ctrl is down
- wait for 5 sec
-> spawn bullet
Hope you'll help me ! <img src="smileys/smiley18.gif" border="0" align="middle" />
It is the correct way to do so.
The system action "Wait" is what you want. http://www.scirra.com/tutorials/56/how-to-use-the-system-wait-action
But beware, for any tick that the ctrl key is down will, 5 seconds later, spawn a bullet.
So if you keep the ctrl button down for 30 ticks, 5 seconds later 30 bullets will be spawnt in a row.
hmm you want hold on ctrl or just one click??? because the game will looks weird when you click then wait 5seconds then create bullet but if its hold ctrl and create bullet every 5 seconds its much better i think
the one you said is (one click )
Develop games in your browser. Powerful, performant & highly capable.
The wait action is perfect. I first thought it was a condition, but it's not and that's what I needed. :D