minor stuff
This commit is contained in:
@@ -75,6 +75,9 @@ func _physics_process(delta):
|
||||
@onready var die_sound = $dieSound
|
||||
|
||||
func f_die():
|
||||
gravity_scale = 0
|
||||
collision_shape_2d.queue_free()
|
||||
die.queue_free()
|
||||
die_sound.play()
|
||||
speed = 0
|
||||
innocent = true
|
||||
|
||||
@@ -200,6 +200,7 @@ func shrink():
|
||||
player_die()
|
||||
|
||||
func player_die():
|
||||
visible = false
|
||||
die_player.play("die")
|
||||
on_pause = true
|
||||
music.stop()
|
||||
|
||||
Reference in New Issue
Block a user