13 lines
253 B
GDScript
13 lines
253 B
GDScript
extends Label
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
set_visible(false)
|
|
|
|
func _on_TileMap_wrong_way(coords):
|
|
if coords == Vector2(-1,-1):
|
|
set_visible(false)
|
|
else:
|
|
set_visible(true)
|
|
set_position(coords)
|