Skip to content

Commit

Permalink
refs #145: Check orientation and play proper animation at every point…
Browse files Browse the repository at this point in the history
… of path

Checked directly with @mapedorr and we decided to merge immediately.
  • Loading branch information
Whyshchuck authored Jan 7, 2024
1 parent 71c3cf7 commit 620e927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/popochiu/engine/objects/room/popochiu_room.gd
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ func _move_along_path(distance: float, moving_character_data: Dictionary):
)

if distance <= distance_between_points:
moving_character_data.character.face_direction(moving_character_data.path[0])
moving_character_data.character._play_walk(moving_character_data.path[0])
var next_position = last_point.lerp(
moving_character_data.path[0], distance / distance_between_points
)
Expand Down

0 comments on commit 620e927

Please sign in to comment.