Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Adding Time To A Timer (Resolved)

Yin

Member

I'm using XP and I just would like to know how would I go about adding or subtracting time from at timer? There's only start and stop. Am I overlooking something?
 
Nope, you're not missing anything. You'd need a script to pretty much do anything useful with the timer (descreasing/increasing time, setting a timer to the value of a variable, setting a variable to the time of the timer, etc.).
 
Actually, you have to set a variable equal to the value of the timer (using the "Other" option at the bottom). Then, just edit the variable. To set the timer to the new variable, you'll have to use the following script call:

Code:
v=$game_variables[1]

s=$game_system

s.timer=v

s.timer_working=true

You have to chenge the 1 in the first line to whatever variable you set to the timer's value. Remember, when you modify the timer, every second added to or subtracted from the timer is a total value of 40 up or down on the variable. (You increase it to increase the time, and vice-versa)
 
First, you set a variable to the value of the timer. Then you edit the variable. Then you use a script call (The bottom right command on the last event command page) and insert the script I gave you, changing the number in the first line to the number of the variable you edited.
1
Edit: Wait... "Timer Operation"? Are you using the English patch or Postality Knight's edition, by any chance?
 

Yin

Member

The english version. Sorry, I just switched from 2003. Still have the vocab kinda confused. Like how it says Turn instead of face? I'm still not over that.
 
Yin":207049ex said:
The english version. Sorry, I just switched from 2003. Still have the vocab kinda confused. Like how it says Turn instead of face? I'm still not over that.


Ahh. I see. That reminds me of something. I've still got to edit some stuff on the wiki, including the various pages on the RPG Maker programs.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top