Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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