Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Inactivity Timer (http://www.alice.org/community/showthread.php?t=12128)

PostalDave 10-19-2018 12:22 PM

Inactivity Timer
 
I'm making a game and when the arrow keys aren't used for a couple of minutes, then something needs to happen to the avatar.

I made a simple timer in a method, but the variable doesn't reset to 0 after every time the arrow keys are pressed.

I think I'm on the wrong train of thought with this so could someone give me some help please.

Dehixial 10-25-2018 07:27 AM

[QUOTE=PostalDave;58504]I'm making a game and when the arrow keys aren't used for a couple of minutes, then something needs to happen to the avatar.

I made a simple timer in a method, but the variable doesn't reset to 0 after every time the arrow keys are pressed.

I think I'm on the wrong train of thought with this so could someone give me some help please.[/QUOTE]


Send your project and ill take a look.


All times are GMT -5. The time now is 06:29 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.