diff --git a/princesse.gd b/princesse.gd index 7fd174e..1708cb8 100644 --- a/princesse.gd +++ b/princesse.gd @@ -456,7 +456,7 @@ func get_new_animation() -> String: animation_new = "jumping" return animation_new -func _physics_process(delta: float) -> void: +func _physics_process(_delta: float) -> void: if dead: return compute_state() @@ -487,5 +487,5 @@ func _ready(): locked = false dead = false -func _on_death_player_animation_finished(anim_name: StringName) -> void: +func _on_death_player_animation_finished(_anim_name: StringName) -> void: get_tree(). reload_current_scene() diff --git a/princesse.tscn b/princesse.tscn index c95b72f..e70d8d5 100644 --- a/princesse.tscn +++ b/princesse.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=33 format=3 uid="uid://dv0mokf4eogm7"] +[gd_scene load_steps=37 format=3 uid="uid://dv0mokf4eogm7"] [ext_resource type="Script" path="res://princesse.gd" id="1_dkp7s"] [ext_resource type="Texture2D" uid="uid://dr7fyh2rufsyj" path="res://sprite/princess_falling_direction.png" id="2_hholp"] @@ -312,5 +312,4 @@ texture = SubResource("GradientTexture2D_irtut") texture_scale = 1.2 [connection signal="cheese_collected" from="." to="." method="reload_fart"] -[connection signal="animation_finished" from="Death player" to="." method="reload_scene"] [connection signal="animation_finished" from="Death player" to="." method="_on_death_player_animation_finished"]