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, 28 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, 47 views)
   
Reply With Quote
Old
atrane365
Guest
 
Status:
Posts: n/a
Default 05-16-2012, 10:17 AM

Quote:
Originally Posted by GameKid View Post
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...

How do you put the underlined part in code?
This is for a final program im doing, but instead of time, im thinking of a base health counter, where if an enemy reaches the base, the amount goes down. ive seen it done, i just dont know where the 'set text' code is...
   
Reply With Quote
Old
atrane365
Guest
 
Status:
Posts: n/a
Default 05-16-2012, 10:27 AM

never mind. i found it
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.