more tuts, respawn mechanic when falling, reworked wall run again
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
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
This commit is contained in:
21
maps/_templates/main_scene_template.gd
Normal file
21
maps/_templates/main_scene_template.gd
Normal file
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user