Files
JumpRopeOldTech/hidden_spike.gd
T
2026-10-18 18:43:49 -05:00

15 lines
338 B
GDScript

extends Node2D
func _ready() -> void:
add_to_group("Hidden")
modulate = Color.DARK_CYAN
func _process(delta: float) -> void:
pass
func on_contact(body: Node2D) -> void:
if body==%Player2D and %Player2D.death_cooldown == 0:
print("SLASH KILL")
%Player2D/Jetpack/DeathSound.play()
%Player2D.on_death(false,%Player2D.position)