Alice Community  

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

Reply
 
Thread Tools Display Modes
creating/using a timer... HELP
Old
computerfreak42
Junior Member
 
computerfreak42's Avatar
 
Status: Offline
Posts: 6
Join Date: Nov 2011
Location: Corvallis, OR
Exclamation creating/using a timer... HELP - 11-27-2011, 10:18 PM

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 this friday 12/2/11
4. Please... HELP ME!
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 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.
   
Reply With Quote
Old
computerfreak42
Junior Member
 
computerfreak42's Avatar
 
Status: Offline
Posts: 6
Join Date: Nov 2011
Location: Corvallis, OR
Default 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?
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 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"
   
Reply With Quote
Old
computerfreak42
Junior Member
 
computerfreak42's Avatar
 
Status: Offline
Posts: 6
Join Date: Nov 2011
Location: Corvallis, OR
Talking 11-28-2011, 10:58 AM

thank you... that makes things a lot easier


"If we know what we were doing, it wouldn't be called research would it?"
   
Reply With Quote
Old
davidghemer
Member
 
Status: Offline
Posts: 38
Join Date: Nov 2011
Default 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

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


For video tutorials on programming in Alice 2.2 check out my YouTube channel

http://www.youtube.com/user/drdave785

Also check out my Programming in Alice blog at

http://programminginalice.com
   
Reply With Quote
Reply

Tags
alice 2.2 project, object needed, simple, timer, urgent

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.