Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: furiousfox on December 13, 2008, 08:42:58 AM
-
ok so. In my game a bomb has been set and the timer is for 2 min 30 seconds. I want the heros to get out before that time or die. I have tried many things with no success. All i want is a timer that displaces on screen and through battles and when it reaches 0 and the heros have not reached the save zone they die.
I hope you guys understood that its late here xD
-
Well, you'll need pictures of numbers to get what you want, here. It'd be... sort of complicated but the way I'd go about doing this is a variable for the time (in this case the variable would start out at 150), with a 'minus 1' off the variable every second. Then, make three seperate pictures, each representing the numbers in the timer --
So you could do something like have each picture check the variable every .1 seconds and then change to the number it would correspond to... So if there's 1:59 left then the first picture would be 1:, the second would be 5, and the last would be 9. With a bit of conditional branches in each, and the know how, it should give you something close to what you want...
Oh and have one of the picture-events check when the variable is equal or less than zero, and then just have explosions and ****, along with gameover.
-
Theres actually an extremely simple solution to this problem. The game has a built in system that displays a timer. For an example I have made a simple switch timer to help you out. Heres some screenshots:
(http://i43.photobucket.com/albums/e354/hellroc/Chara%20Help/pg1.jpg)
(http://i43.photobucket.com/albums/e354/hellroc/Chara%20Help/pg2.jpg)
This is the switch on the wall that turns the timer off before the bomb detonates.
(http://i43.photobucket.com/albums/e354/hellroc/Chara%20Help/pg3.jpg)
This is a screenshot of the in game timer that counts down from the set time.
(http://i43.photobucket.com/albums/e354/hellroc/Chara%20Help/pgscrnsht.jpg)
Just take this example and set the time you wish to have it count down from. Then make it start with display timer on screen option selected. I hope you can take somthing from this and if you need any help just ask.
-
I... did not know that.
*walks away, with his tail between his legs*
-
the problem with the wait command is that the charactor is kinda...stuck in place..isn't he/she?
-
No he isn't as long as you make it a parrallel process. The second page where the wait command is can also be made into a common event so that you can have him move from map to map without making the timer go away.
-
This is a link to the bomb tutorial I made today for this thread, enjoy. Small download.
http://www.filefactory.com/file/aged0ef/n/Helper_rar