TenebrisCrow

The Kelphy Corp
Veteran
Joined
Oct 19, 2015
Messages
98
Reaction score
6
First Language
English
Primarily Uses
RMMZ
I was wondering if there is a way to modify the timer? A person has 5 minutes to get to work, but every time the bus drives passed them, 1 minute goes automatically. Also the bus ride goes down 2 minutes as well. Is there a way to do this? To change the timer as it's running?
 

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
645
Reaction score
533
First Language
German
Primarily Uses
RMMV
You can either use a scipt call, like this:


$gameTimer._frames = $gameTimer._frames - 600;


Replace the 600 with the number of frames you want to subtract from the timer (1 second = 60 frames).


It might also be a good idea to check if the time left would be negative, and in that case set the timer to 0, like this:


if ($gameTimer._frames - 600 > 0) {
$gameTimer._frames = $gameTimer._frames - 600;
} else {
$gameTimer._frames = 0;
}




Or you can use a plugin like this one:


http://forums.rpgmakerweb.com/index.php?/topic/54387-timer-expansion-mv-v10/#comment-535464


The download link is a bit broken, you can find the plugin here:


http://pastebin.com/raw/iuhzZqLV


Hope that helps :)
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

Anyone going to talk about Chris Pratt Mario?
My friend just gave me chocolate milk at lunch today! My day is now 1000x better. Yay, choco milky!! :kaojoy:
RivalRamen_Games wrote on jacobv1014's profile.
I really like your profile picture! Who is that in it? is she an OC?
Making his first game

Forum statistics

Threads
115,331
Messages
1,089,077
Members
149,999
Latest member
Nasciturus
Top