mirror of
https://github.com/Steffo99/pineapple-surf.git
synced 2024-11-22 07:44:20 +00:00
🫡 Reset player velocity on splash
This commit is contained in:
parent
56993e3d1d
commit
7051a1a311
1 changed files with 1 additions and 0 deletions
|
@ -10,3 +10,4 @@ func _process(_delta):
|
||||||
if player.position.y < 0:
|
if player.position.y < 0:
|
||||||
splash_sound.play()
|
splash_sound.play()
|
||||||
player.position = spawn_point
|
player.position = spawn_point
|
||||||
|
player.velocity = Vector3.ZERO
|
||||||
|
|
Loading…
Reference in a new issue