From f576db7c0bcc13e051ce44a71e101e04d3bfd75f Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Sat, 15 Jul 2023 20:08:36 +0100 Subject: [PATCH] Fixed the first frame of RMXP Database animations not showing --- Data/Scripts/001_Technical/006_RPG_Sprite.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/Scripts/001_Technical/006_RPG_Sprite.rb b/Data/Scripts/001_Technical/006_RPG_Sprite.rb index bdba9db3a..097c3802a 100644 --- a/Data/Scripts/001_Technical/006_RPG_Sprite.rb +++ b/Data/Scripts/001_Technical/006_RPG_Sprite.rb @@ -35,7 +35,7 @@ class SpriteAnimation @_animation_hit = hit @_animation_height = height @_animation_duration = @_animation.frame_max - @_animation_index = 0 + @_animation_index = -1 fr = 20 if @_animation.name[/\[\s*(\d+?)\s*\]\s*$/] fr = $~[1].to_i @@ -69,7 +69,7 @@ class SpriteAnimation @_loop_animation = animation return if @_loop_animation.nil? @_loop_animation_duration = @_animation.frame_max - @_loop_animation_index = 0 + @_loop_animation_index = -1 fr = 20 if @_animation.name[/\[\s*(\d+?)\s*\]\s*$/] fr = $~[1].to_i