The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: shinyflygon on February 12, 2006, 02:18:57 PM

Title: Timer
Post by: shinyflygon on February 12, 2006, 02:18:57 PM
Im making a mini game where you have to find some chickens, and you have a time limit, how do i make it so the timer counts down and when it reaches 0 the game ends so you have to restart it, and also how do i make it so the game can be replayed again.
Title: Timer
Post by: blueXx on February 12, 2006, 02:35:29 PM
timer operation, if it make any problems use waits and make a counting timer of your own
can't figure out how?
http://www.crankeye.com/forums/viewtopic.php?t=4361

so say you make it a sec variable and set it to 200 or something, you can make the timer like that:
parallel proccess:
wait 20 frame
Variable(sec): -1
if sec <= 0 then
-message: bang you failed
-game(switch) = off

now you make the starting the game over again thingy
it looks like:
parallel:
if game = off then
-show choices:(play, info)
--upon play:
---sec= 200
---chicken switches or variables = off/0
---game  = on
--upon info:
---message: blablbala info

and that just about solves everything
Title: Timer
Post by: shinyflygon on February 12, 2006, 02:44:58 PM
thats confusing
Title: Timer
Post by: Nightwolf on February 12, 2006, 03:13:27 PM
1. Read Blue's answer properly, try to understand.
2. If you're asking for help,it should be in the troubleshooting forum.