Movement animation

This commit is contained in:
2024-10-25 18:07:30 +02:00
parent 5dc5c305e3
commit ce82a8b5f7
5 changed files with 179 additions and 7 deletions

View File

@ -3,9 +3,11 @@ extends Area2D
@onready var timer: Timer = $Timer
func _on_body_entered(body: Node2D) -> void:
print("YouveDied!")
Engine.time_scale = 0.5
body.get_node("CollisionShape2D").queue_free()
timer.start()
func _on_timer_timeout() -> void:
Engine.time_scale = 1
get_tree().reload_current_scene()