Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How to make the ring catching game (http://www.alice.org/community/showthread.php?t=4273)

keke62809 04-21-2010 03:15 PM

How to make the ring catching game
 
I completed the events part of making it I jus need help putting a timer for when you catch the ring and making the ring drop and reset if anybody can help me I would be very thankful.

Niteshifter 04-21-2010 05:15 PM

First, make two global variables. One is a number and the other as a boolean. Next, have a method with a while statement with the condition "while not break", this will make it easier to pause and resume the timer. Inside the while will wait 1 second and then add 1 to the timer.

Next, you make an event that will check if the ring has been caught and inside the body will be something that sets the timer number to 0.

You can also put beside each piece that changes the timer variable to set some 3D text to the number that's in the timer variable.


All times are GMT -5. The time now is 02:19 PM.

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