1
0
Fork 0

add change orientation even if blocked

This commit is contained in:
Manu 2021-04-25 03:13:21 +02:00
parent 72a976a8e8
commit 1c20caba7b
1 changed files with 3 additions and 0 deletions

View File

@ -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()