More FPS agnosticism, fixed pause after finishing an event's repeating move route

This commit is contained in:
Maruno17
2023-05-24 21:20:20 +01:00
parent 167155c67d
commit c756e2647a
30 changed files with 947 additions and 847 deletions

View File

@@ -18,7 +18,7 @@ class Sprite_Timer
def update
return if disposed?
if $game_system.timer_working
if $game_system.timer_start
@timer.visible = true if @timer
if !@timer
@timer = Window_AdvancedTextPokemon.newWithSize("", Graphics.width - 120, 0, 120, 64)
@@ -27,7 +27,7 @@ class Sprite_Timer
@timer.viewport = @viewport
@timer.z = 99998
end
curtime = $game_system.timer / Graphics.frame_rate
curtime = $game_system.timer
curtime = 0 if curtime < 0
if curtime != @total_sec
# Calculate total number of seconds