ImmuneEntity
Sponsor
Is there a script call I could use that would simply pause the timer, but not stop it? I can't do that with simple events...
#==============================================================================
# ** Pause Timer
#------------------------------------------------------------------------------
# Icarus Featherfight
# Version: 1.0.0
# June 19, 2007
#------------------------------------------------------------------------------
# This simple script allows you to pause the timer using
# $game_system.pause_timer = true
# and restart it with
# $game_system.pause_timer = false
# in an event script.
#==============================================================================
#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
# This class handles data surrounding the system. Background music, etc.
# is managed here as well. Refer to "$game_system" for the instance of
# this class.
#==============================================================================
class Game_System
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :pause_timer # pauses the timer
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
alias icarus_pausetimer_initialize initialize
def initialize
# The usual
icarus_pausetimer_initialize
@pause_timer = false
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
alias icarus_pausetimer_update update
def update
unless @pause_timer
icarus_pausetimer_update
end
end
end
class Sprite_Timer
alias sprite_timer_update update
def update
sprite_timer_update
# Conditions to hide the timer (switch, $game_temp.in_battle etc.)
if $game_switches.[](id of switch you created) == true
# Hide the timer
self.visible = false
end
end
end