PirateTreasureHunt/DigSite.gd

16 lines
367 B
GDScript

extends Node2D
var HasTreasure = false
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
get_node("treasuredigsite").visible = HasTreasure
get_node("digsite").visible = not HasTreasure
update()