Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 19s
Create tag and build when new code gets to main / Test (push) Successful in 7m37s
Create tag and build when new code gets to main / Export (push) Has been cancelled
Create tag and build when new code gets to main / ReleaseName (push) Successful in 10s
Create tag and build when new code gets to main / Release (push) Failing after 4m53s
22 lines
481 B
GDScript
22 lines
481 B
GDScript
extends Node3D
|
|
|
|
|
|
@onready var player_fell_respawn: Marker3D = $PlayerFellRespawn
|
|
@onready var animation_player: AnimationPlayer = $AnimationPlayer
|
|
|
|
var _player: Node3D
|
|
|
|
func _on_player_fell_tp_body_entered(body: Node3D) -> void:
|
|
_player = body
|
|
animation_player.play("player_fell")
|
|
|
|
|
|
func reset_player_position() -> void:
|
|
if _player == null:
|
|
return
|
|
_player.position = player_fell_respawn.position
|
|
|
|
|
|
func _on_death_plane_body_entered(body: Node3D) -> void:
|
|
body.queue_free()
|