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-10-2012 02:32 PM

re-timer
 
Thanks,
That is what I needed.

atrane365 05-16-2012 10:17 AM

[QUOTE=GameKid;47938]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] [U]set text[/U] [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...[/QUOTE]


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...

atrane365 05-16-2012 10:27 AM

never mind. i found it


All times are GMT -5. The time now is 08:47 AM.

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