diff options
Diffstat (limited to 'Scenes/Dungeon.gd')
-rw-r--r-- | Scenes/Dungeon.gd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Scenes/Dungeon.gd b/Scenes/Dungeon.gd index 2e95fd7..0092c6a 100644 --- a/Scenes/Dungeon.gd +++ b/Scenes/Dungeon.gd @@ -112,6 +112,7 @@ func move_player(dir : Vector2): var new_tile = cur_tile + dir if tiles_entities.has(new_tile): + player.add_action("cor_shake", [0.2]) return tiles_entities.erase(cur_tile) @@ -119,7 +120,7 @@ func move_player(dir : Vector2): #player_check_attack(new_tile) - player.add_action("cor_move", [tile_to_pos(new_tile)]) + player.add_action("cor_move", [tile_to_pos(new_tile), 0.2]) player.roll(dir) func tile_to_pos(tile : Vector2): |