godot/demos/2d/isometric_light/map.gd

8 lines
120 B
GDScript

extends Node2D
func _on_prince_area_body_enter(body):
if (body.get_name() == "cubio"):
get_node("message").show()