summaryrefslogtreecommitdiff
path: root/client/player/player.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/player/player.gd')
-rw-r--r--client/player/player.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/player/player.gd b/client/player/player.gd
index d64b5d43..41ba1059 100644
--- a/client/player/player.gd
+++ b/client/player/player.gd
@@ -56,14 +56,14 @@ func set_item(i: Item):
if i == null:
push_error("tile is null")
hand = i
- character.play_animation("hold")
+ character.holding = true
func remove_item() -> Item:
var i = hand
if i == null:
push_error("holding nothing")
hand = null
- character.play_animation("idle")
+ character.holding = false
return i
func take_item(tile: Floor):
@@ -84,3 +84,4 @@ func _process(delta):
position.x = position_anim.x
position.z = position_anim.y
rotation.y = rotation_anim
+ character.walking = position_.distance_squared_to(position_anim) > 0.001