diff --git a/scripts/Game_Character 1.rb b/scripts/Game_Character 1.rb index 371ab60..933ec10 100644 --- a/scripts/Game_Character 1.rb +++ b/scripts/Game_Character 1.rb @@ -45,7 +45,6 @@ class Game_Character @through = false @animation_id = 0 @transparent = false - @original_direction = 2 @original_pattern = 0 @move_type = 0 @move_speed = 4 diff --git a/scripts/Game_Character 2.rb b/scripts/Game_Character 2.rb index 764793e..636b185 100644 --- a/scripts/Game_Character 2.rb +++ b/scripts/Game_Character 2.rb @@ -161,7 +161,7 @@ class Game_Character abs_sx = sx > 0 ? sx : -sx abs_sy = sy > 0 ? sy : -sy # If separated by 20 or more tiles matching up horizontally and vertically - if sx + sy >= 20 + if abs_sx + abs_sy >= 20 # Random move_random return @@ -326,11 +326,8 @@ class Game_Character @tile_id = 0 @character_name = command.parameters[0] @character_hue = command.parameters[1] - if @original_direction != command.parameters[2] - @direction = command.parameters[2] - @original_direction = @direction - @prelock_direction = 0 - end + @direction = command.parameters[2] + @prelock_direction = 0 if @original_pattern != command.parameters[3] @pattern = command.parameters[3] @original_pattern = @pattern @@ -342,7 +339,7 @@ class Game_Character when 44 # Play SE $game_system.se_play(command.parameters[0]) when 45 # Script - result = eval(command.parameters[0]) + eval(command.parameters[0]) end @move_route_index += 1 end diff --git a/scripts/Game_Character 3.rb b/scripts/Game_Character 3.rb index 5bc4357..8b5dc47 100644 --- a/scripts/Game_Character 3.rb +++ b/scripts/Game_Character 3.rb @@ -11,8 +11,6 @@ class Game_Character # turn_enabled : a flag permits direction change on that spot #-------------------------------------------------------------------------- def move_down(turn_enabled = true) - # Only emit footprint if already facing down - emit = @direction == 2 # Turn down if turn_enabled turn_down @@ -22,7 +20,7 @@ class Game_Character # Turn down turn_down # Emit footprint - emit_footprint(2) if emit + emit_footprint(2) # Update coordinates @y += 1 # Increase steps