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
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..
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 :)
Develop games in your browser. Powerful, performant & highly capable.
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">