Sorry by my English, but I'm from Spain. How can I wait a time?
I want to say.... Mmmmm...
I want that when you press de space bar, a sprite turns visible, and then waits 1 second before you can do it again.
Here you are :
<img src="http://data.nimages.fr/waitTimePNGmjn.png">
Id post a cap of the function object, but so often the new users are using the stable, and I have at the moment is the latest unstable.
Any way there should b something on the wiki about it.
Develop games in your browser. Powerful, performant & highly capable.
There is a wait object now.
The above solution in the screenshot of doesn't work, as I used it extensively and it screwed up the timing.
It never stops counting that 1000 ms, so turning invisible could happen 5 ms after pressing Space if 995 ms have elapsed on the internal clock.
There is a wait object now. The above solution in the screenshot of doesn't work, as I used it extensively and it screwed up the timing. It never stops counting that 1000 ms, so turning invisible could happen 5 ms after pressing Space if 995 ms have elapsed on the internal clock.
Oh okay, i didnt notice that ! Thank you and sorry for my bad answer !