Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
timer help
« previous
next »
Print
Pages: [
1
]
Author
Topic: timer help (Read 3558 times)
furiousfox
Initiate
Posts: 3
timer help
«
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
Logged
Hell Angel
...uhhh...ummm...
Zealot
Posts: 596
Re: timer help
«
Reply #1 on:
December 13, 2008, 09:01:15 AM »
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.
Logged
I make musics. You should listen.
Rahl
Lord Of Gamedwellers
Leader
Posts: 2,356
Re: timer help
«
Reply #2 on:
December 19, 2008, 07:12:40 AM »
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:
This is the switch on the wall that turns the timer off before the bomb detonates.
This is a screenshot of the in game timer that counts down from the set time.
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.
Logged
Hell Angel
...uhhh...ummm...
Zealot
Posts: 596
Re: timer help
«
Reply #3 on:
December 19, 2008, 08:33:22 AM »
I... did not know that.
*walks away, with his tail between his legs*
Logged
I make musics. You should listen.
ShadowStorm
Member
Initiate
Posts: 3
Re: timer help
«
Reply #4 on:
December 28, 2008, 09:31:11 PM »
the problem with the wait command is that the charactor is kinda...stuck in place..isn't he/she?
Logged
Rahl
Lord Of Gamedwellers
Leader
Posts: 2,356
Re: timer help
«
Reply #5 on:
December 28, 2008, 09:55:54 PM »
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.
Logged
Rahl
Lord Of Gamedwellers
Leader
Posts: 2,356
Re: timer help
«
Reply #6 on:
December 29, 2008, 02:17:35 AM »
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
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
timer help