Files
godot-demo-projects/2d/kinematic_char/colworld.gd
2025-10-02 16:35:34 -07:00

8 lines
177 B
GDScript

extends Node2D
func _on_princess_body_enter(body):
# The name of this editor-generated callback is unfortunate
if (body.get_name() == "player"):
get_node("youwin").show()