For this game, scene 14, we want to press the spacebar and have our camera move quickly for 1 second and then stop. However, if we hold the space bar down, the character just keeps moving. We want to press the space bar once and have it move once. Then have a cooldown before you can press it again. Any suggestions?
1 Like
An event function will fire every time an event occurs, so in order to count the time between successive events, you need a timer external to these events which you can start, check, and stop, using the status in a conditional if statement.
There are plenty of tutorials on this forum for timers, so see if you can put these concepts together.
Best of luck!
Geoff@TechLeap