fix dublicate scene uids and add sound for jumping

This commit is contained in:
Booklordofthedings 2024-08-19 16:24:06 +02:00
parent 59a94bfd7b
commit 683248c666
18 changed files with 32 additions and 1151 deletions

View file

@ -1,5 +1,6 @@
extends CharacterBody2D
@export var sfx : AudioStreamPlayer2D
@export var speed = 340
@export var gravity = 50
var jump_count = 1
@ -103,6 +104,7 @@ func _physics_process(delta):
update_cursor()
func Jump():
sfx.play()
if scale.x == 1:
velocity.y = -1 * jump_strength
else :