Game Development Community

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



#1
07/20/2009 (3:01 am)
Try this

Pausing/Countdown Gui Clock
#2
07/20/2009 (4:22 am)
thanks

how do I jump from 3d view to screen if finished maze?
#3
07/20/2009 (5:17 am)
Display a Gui. PUSH/POP
#4
07/21/2009 (12:33 am)
thanks for quick response
I am a new boy at this can you give an example?
#5
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
07/21/2009 (2:49 am)
thanks

I am using the demo torque game engine will the timer cs work and were does it get loaded from?