How do I create a countdown timer
by David Maxwell · in Torque Game Engine · 07/20/2009 (2:13 am) · 6 replies
Hi can any body help me
I want to create a simple 3d maze game.I understand how to create the maze,models,textures & lighting.
the player needs to successfully navigate through the maze before the timer gets to zero.
It's the code that i cannot figure out
1/a timer that counts down when you begin the maze and can be seen on screen
2/if timer reaches 0 and you have not completed maze goes back to start screen
3/ if reach end of maze before 0 then you can load a more complex maze
4/ pickups to maybe increase time or add more options which also are displayed on screen
I want to create a simple 3d maze game.I understand how to create the maze,models,textures & lighting.
the player needs to successfully navigate through the maze before the timer gets to zero.
It's the code that i cannot figure out
1/a timer that counts down when you begin the maze and can be seen on screen
2/if timer reaches 0 and you have not completed maze goes back to start screen
3/ if reach end of maze before 0 then you can load a more complex maze
4/ pickups to maybe increase time or add more options which also are displayed on screen
About the author
#3
07/20/2009 (5:17 am)
Display a Gui. PUSH/POP
#5
see this comment on the Pausing/Countdown Gui Clock thread
www.garagegames.com/community/resources/view/4978/1#comment-56034
now you can do something when the timer hits zero,
you can show something like a game over screen or go back to start screen using:
Canvas.setContent(yourGameOverScreen);
07/21/2009 (1:06 am)
ok...see this comment on the Pausing/Countdown Gui Clock thread
www.garagegames.com/community/resources/view/4978/1#comment-56034
now you can do something when the timer hits zero,
you can show something like a game over screen or go back to start screen using:
Canvas.setContent(yourGameOverScreen);
#6
I am using the demo torque game engine will the timer cs work and were does it get loaded from?
07/21/2009 (2:49 am)
thanksI am using the demo torque game engine will the timer cs work and were does it get loaded from?
Sailendu Behera
Pausing/Countdown Gui Clock