GrappleTest/Objects/Checkpoint/Checkpoint.gd

7 lines
189 B
GDScript3
Raw Permalink Normal View History

2024-03-17 21:56:16 -05:00
extends Area2D
2024-02-22 00:10:13 -06:00
2024-03-17 21:56:16 -05:00
func _on_body_shape_entered(_body_rid, body, _body_shape_index, _local_shape_index):
if "checkpointPos" in body:
body.checkpointPos = body.global_position
queue_free()