Fixed Database animations' position not moving the animation for exclamations

This commit is contained in:
Maruno17
2024-01-18 23:47:33 +00:00
parent 97a66020ca
commit c78e32db09
7 changed files with 41 additions and 29 deletions

View File

@@ -22,7 +22,9 @@ class Game_Character
attr_accessor :lock_pattern
attr_reader :move_route_forcing
attr_accessor :through
attr_accessor :animation_id
attr_reader :animation_id
attr_accessor :animation_height
attr_accessor :animation_regular_tone
attr_accessor :transparent
attr_reader :move_speed
attr_reader :jump_speed
@@ -54,7 +56,7 @@ class Game_Character
@lock_pattern = false
@move_route_forcing = false
@through = false
@animation_id = 0
animation_id = 0
@transparent = false
@original_direction = 2
@original_pattern = 0
@@ -86,6 +88,14 @@ class Game_Character
@prelock_direction = 0
end
def animation_id=(value)
@animation_id = value
if value == 0
@animation_height = 3
@animation_regular_tone = false
end
end
def x_offset; return @x_offset || 0; end
def y_offset; return @y_offset || 0; end