Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
sorry, this was already say but im stuck ^^"
I just want to shoot in continu when I press "space" but I do a infinty while, can anyone help me?
Keyboard "Space" key is down, is probably what you're looking for.
whell, I don't really get how while work, I first think to add a action in while whith keyboard but keyboard doesn't exist in "action".. so I don't get it ^^"
how do whe do a while exactly? can you send me an exemple ?
Develop games in your browser. Powerful, performant & highly capable.
Cannot send an example for several hours as in work but what I am saying is you don't need to use while here, the keyboard action 'key is down' basically means 'while the key is pressed down then do this'. That's what you want to happen, shoot while the key is pressed down? 'On key pressed' is just a one time trigger on initial key press.
oh ! thanks a lot ^^
just a last thing, did you know how to do a cooldown with this XD
just a last thing, did you know how to do a cooldown because I have a big ray of bullets XD
Yeah I can't see C2 right now to test it but it'll be combining 'key is down' with the system action every X seconds. So while space is down > add condition every 0.5 seconds spawn the bullet. Whatever time interval you need for the game.
it work, ty ^^