Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Need help with reaction time
Old
tpimol
Junior Member
 
Status: Offline
Posts: 2
Join Date: Sep 2011
Exclamation Need help with reaction time - 10-01-2011, 10:18 AM

Any one know how to make a elapsed timer that accurate to milsecond ? I want to make a timer that like when I press a button "start" an object will move and when i press "end" the object will stop and will say the time elapsed between it move and when I press "end". I need help cause I will submit the project next Monday

Last edited by tpimol; 10-01-2011 at 07:24 PM. Reason: Solved the problem
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 10-01-2011, 07:49 PM

I'll tell you this: Make a number variable that is set to 0. Make it so that after the Start button is pressed as long as the End button isn't pressed, wait 0.001 seconds, then have the variable set its value to itself plus 0.001. I think you can figure out the rest yourself, but if you can't then just post and say so.


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
tpimol
Junior Member
 
Status: Offline
Posts: 2
Join Date: Sep 2011
Default 10-01-2011, 08:20 PM

I has firgu it out thanks a lot

Last edited by tpimol; 10-01-2011 at 09:58 PM.
   
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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