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