Alice Community  

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

Reply
 
Thread Tools Display Modes
Timer
Old
johnbaum
Junior Member
 
Status: Offline
Posts: 6
Join Date: Feb 2012
Location: Hawaii
Exclamation Timer - 04-08-2012, 06:55 PM

How can I make a timer count down from 5 minutes.
   
Reply With Quote
Old
GameKid
Senior Member
 
GameKid's Avatar
 
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 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...


[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.
   
Reply With Quote
re-timer
Old
johnbaum
Junior Member
 
Status: Offline
Posts: 6
Join Date: Feb 2012
Location: Hawaii
Default re-timer - 04-09-2012, 12:25 AM

That is way over my heads can you make it for me?
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 04-09-2012, 02:58 AM

Quote:
Originally Posted by johnbaum View Post
That is way over my heads can you make it for me?
try it. if it doesn't work, post it and we will help you.


:D
   
Reply With Quote
re-Timer
Old
johnbaum
Junior Member
 
Status: Offline
Posts: 6
Join Date: Feb 2012
Location: Hawaii
Default re-Timer - 04-09-2012, 03:14 PM

Here is my pretty sorry attempt.
Attached Files
File Type: a2w timer2.a2w (172.1 KB, 29 views)
   
Reply With Quote
timer help
Old
johnbaum
Junior Member
 
Status: Offline
Posts: 6
Join Date: Feb 2012
Location: Hawaii
Default timer help - 04-09-2012, 08:00 PM

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.
Attached Files
File Type: a2w timer1.0.a2w (173.1 KB, 55 views)
   
Reply With Quote
Old
GameKid
Senior Member
 
GameKid's Avatar
 
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 04-09-2012, 08:06 PM

Quote:
Originally Posted by johnbaum View Post
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.
300 seconds=Five minutes.
Good job figuring out what I said.


[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.
   
Reply With Quote
re-timer
Old
johnbaum
Junior Member
 
Status: Offline
Posts: 6
Join Date: Feb 2012
Location: Hawaii
Default re-timer - 04-10-2012, 12:13 AM

I know 300 seconds equals 5 minutes, but I want it to look like 5 minutes not 300 seconds.
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 04-10-2012, 04:06 AM

Quote:
Originally Posted by johnbaum View Post
I know 300 seconds equals 5 minutes, but I want it to look like 5 minutes not 300 seconds.
divide by 60.


:D
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 04-10-2012, 09:07 AM

Quote:
Originally Posted by johnbaum View Post
I know 300 seconds equals 5 minutes, but I want it to look like 5 minutes not 300 seconds.
So originally set the text object to "5", and have the loop wait 60 seconds instead of 1 second


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Reply

Thread Tools
Display Modes

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.