From 859731086735b30085f8d2fea81a0b18a46b86af Mon Sep 17 00:00:00 2001 From: SondreElg Date: Sat, 4 Oct 2025 16:53:42 +0200 Subject: [PATCH] fix: update player positions --- growth/player.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/growth/player.gd b/growth/player.gd index ce12f00..b070520 100644 --- a/growth/player.gd +++ b/growth/player.gd @@ -126,6 +126,9 @@ func _process(delta): else: move_state = MoveState.Still; + position += velocity * delta + position = position.clamp(Vector2.ZERO, screen_size) + # Handle action_state if Input.is_action_pressed("play_card"): play_card(); @@ -139,4 +142,3 @@ func _process(delta): elif Input.is_action_pressed("charge"): action_state = ActionState.Charging; charge(); -