Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   creating/using a timer... HELP (http://www.alice.org/community/showthread.php?t=7665)

computerfreak42 11-27-2011 10:18 PM

creating/using a timer... HELP
 
i am using Alice 2.2, and i'm trying to create a hidden object game with a timer...

Problems:
1. i don't have a timer
2. i have no idea about how to program said timer...
3. the project is due [U]this friday[/U] 12/2/11
4. Please... HELP ME! :eek:

Mr Kidnapper 11-27-2011 10:29 PM

Make a number variable that decrements by 1 every second. When it reaches 0, make a method something to the effect of 'A Winner is You' or something.

computerfreak42 11-27-2011 10:52 PM

but what if i want to have i timer on screen too? how do i make the numbers count down?

Mr Kidnapper 11-28-2011 12:05 AM

Use a 3D Text.
Set the 3D Text "Text" parameter to the timer number variable As a String.
The As a String function can be found on World as "[What] as a string"

computerfreak42 11-28-2011 10:58 AM

thank you... that makes things a lot easier :D

davidghemer 11-28-2011 04:49 PM

Here's a link to a video tutorial that demonstrates how to create a countdown timer, with seconds and minutes using 3D text. It could easily be extended with hours if you want to go really crazy :)

[url]http://www.youtube.com/watch?v=aXyEgqU1q1w[/url]


All times are GMT -5. The time now is 07:37 AM.

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