Alice Community

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

johnbaum 04-08-2012 06:55 PM

Timer
 
How can I make a timer count down from 5 minutes.

GameKid 04-08-2012 10:01 PM

Well, first, you add a 3D Text that says 300. Then, make a number variable that is 300. Finally, add a method with the following:
If [Your variable here] > 0
[Your 3D Text here] set text [Your countdown over message here]
else
Wait 1 second
Decrement [Your variable here] by one
3D Text set text [(Your variable here) as a string]
-------
You can find [What] as a string and [Number] > [Number] under world's functions.
You can call the 3D text to change text by dragging the Text node from 3D Text's properties.
If that's too complicated, I can make it for you...

johnbaum 04-09-2012 12:25 AM

re-timer
 
That is way over my heads can you make it for me?

room14 04-09-2012 02:58 AM

[QUOTE=johnbaum;47945]That is way over my heads can you make it for me?[/QUOTE]

try it. if it doesn't work, post it and we will help you. :)

johnbaum 04-09-2012 03:14 PM

re-Timer
 
1 Attachment(s)
Here is my pretty sorry attempt.

johnbaum 04-09-2012 08:00 PM

timer help
 
1 Attachment(s)
What I need is a timer that counts down from 5 minutes. I have the seconds figured out, but I am stuck om the minutes.
Here is what I have so far.

GameKid 04-09-2012 08:06 PM

[QUOTE=johnbaum;47967]What I need is a timer that counts down from 5 minutes. I have the seconds figured out, but I am stuck om the minutes.
Here is what I have so far.[/QUOTE]

300 seconds=Five minutes.
Good job figuring out what I said.

johnbaum 04-10-2012 12:13 AM

re-timer
 
I know 300 seconds equals 5 minutes, but I want it to look like 5 minutes not 300 seconds.

room14 04-10-2012 04:06 AM

[QUOTE=johnbaum;47975]I know 300 seconds equals 5 minutes, but I want it to look like 5 minutes not 300 seconds.[/QUOTE]

divide by 60.

TauTrumpsPi 04-10-2012 09:07 AM

[QUOTE=johnbaum;47975]I know 300 seconds equals 5 minutes, but I want it to look like 5 minutes not 300 seconds.[/QUOTE]

So originally set the text object to "5", and have the loop wait 60 seconds instead of 1 second


All times are GMT -5. The time now is 12:42 PM.

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