Files
JumpRopeOldTech/spike.gd
T
2026-10-17 02:21:08 -05:00

18 lines
382 B
GDScript

extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func on_contact(body: Node2D) -> void:
if body==%Player2D:
print("SLASH KILL")
%Player2D.on_death()
print(body)