I'm making a game, in this game an event is that if more than 10 seconds no movement on keyboard it would notice the player with alarm sound.
how can I estimate that more than 10 seconds no movement on keyboard?
please help me..
Develop games in your browser. Powerful, performant & highly capable.
why "on any key pressed" event can't invert in my construct2?
It would be very funny to detect or start anything on a "On no key is pressed".
Why not make a variable called "Timer".
On every 1.00 second, add 1 to Timer.
If any key is pressed, set Timer = 0.
If Timer = 10, play your alarm sound.
Rory will work. you can also do
condition: on any keypress
alertTime = wallclocktime + 10
condition: every 1 second
condition: wallclocktime > alert time
-> do alert
thanks a lot Rory ! that's work
No problem :)
Rory one more simple question but make me confused almost a whole day.How can I get the system date in C2?
I'm not sure 'bout that but I think you can find them in the system expressions ... Nah , Nothing there !
I don't think you can, I think you'd have to ask the player at the start of the game, or make an ajax script which is basically a calendar and get the current date from that script?
EDIT: This is a plugin which can do what you asked <img src="smileys/smiley1.gif" border="0" align="middle">