add change orientation even if blocked
This commit is contained in:
parent
72a976a8e8
commit
1c20caba7b
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ func _process(delta):
|
|||
var target = tile_position + movement.direction
|
||||
if grid.get_cell(target.x, target.y) >= 0 and props.get_cell(target.x, target.y) == -1:
|
||||
movement_queue.push_back(movement)
|
||||
else:
|
||||
sprite.animation = movement.animation
|
||||
|
||||
|
||||
update_animation()
|
||||
|
||||
|
|
Loading…
Reference in a new issue