9 lines
162 B
GDScript
9 lines
162 B
GDScript
|
extends Area2D
|
||
|
|
||
|
@export var teleport_marker: Marker2D
|
||
|
|
||
|
|
||
|
func _on_body_entered(body):
|
||
|
if body is Player:
|
||
|
body.global_position = teleport_marker.global_position
|