idk
This commit is contained in:
@@ -36,7 +36,9 @@ func _on_interacted(p_player: Player) -> void:
|
||||
if player:
|
||||
unmount()
|
||||
else:
|
||||
y_sort_enabled = false
|
||||
player = p_player
|
||||
player.z_index = 2
|
||||
input_released = move_input.length() == 0
|
||||
player.animated_sprite.animation = "sit"
|
||||
player.animated_sprite.flip_h = direction == Direction.LEFT
|
||||
@@ -58,5 +60,7 @@ func unmount() -> void:
|
||||
else:
|
||||
player.position = Vector2(position.x, position.y + 8)
|
||||
player.animated_sprite.animation = "down"
|
||||
player.z_index = 0
|
||||
player = null
|
||||
input_released = true
|
||||
y_sort_enabled = true
|
||||
|
||||
Reference in New Issue
Block a user