class Game_Timer
#--------------------------------------------------------------------------
# * Pause
#--------------------------------------------------------------------------
def pause
@working = false if @count > 0
end
#--------------------------------------------------------------------------
# * Unpause
#--------------------------------------------------------------------------
def unpause
@working = true if @count > 0
end
end
Sadly, my project is on XP and the classes and names in the script above do not really apply to the older version of RGSS. I've been trying to do this myself through trial and error, but to no avail. I was wondering what I could do to make the script (in the link above) compatible with RMXP
(I'm assuming @working has to be something like @timer_working... And @count is maybe @total_sec? I'm still very new to this scripting thing and not too sure about the differences in the scripting terminology of RMXP and RMVXA)
What I'm trying to do: I am attempting to pause a timer when a message is being shown. So, if a timer is running at 10 seconds and I talk to an event, I could call a timer pause to keep it where its at and then unpause the time when I am finished interacting with the event. I found a script that freezes events through a call, so at least I have that... but the timer STILL continues when the message is being shown.
Hey everyone... Quick question.
After searching and searching for a solution, I saw that this was possible to do in VX Ace: http://forums.rpgmakerweb.com/index.php?/topic/16546-pausing-timers-and-resetting-events/
VX Ace Script
Sadly, my project is on XP and the classes and names in the script above do not really apply to the older version of RGSS. I've been trying to do this myself through trial and error, but to no avail. I was wondering what I could do to make the script (in the link above) compatible with RMXP
(I'm assuming @working has to be something like @timer_working... And @count is maybe @total_sec? I'm still very new to this scripting thing and not too sure about the differences in the scripting terminology of RMXP and RMVXA)
What I'm trying to do: I am attempting to pause a timer when a message is being shown. So, if a timer is running at 10 seconds and I talk to an event, I could call a timer pause to keep it where its at and then unpause the time when I am finished interacting with the event. I found a script that freezes events through a call, so at least I have that... but the timer STILL continues when the message is being shown.
Edited by CharlieTooHumanSo, is this difficult to do on RPG Maker XP?
Thanks in advance!
Share this post
Link to post
Share on other sites