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