tool extends Node2D enum Month { JANUARY, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER, } enum Flower { PINE, PLUM_BLOSSOM, CHERRY_BLOSSOM, WISTERIA, IRIS, PEONY, BUSH_CLOVER, GRASS, CHRYSANTHEMUM, MAPLE, WILLOW, PAULOWNIA, } export var revealed: bool = true setget reveal onready var _is_ready := true # Called when the node enters the scene tree for the first time. func _ready(): reveal(revealed) # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): pass func reveal(new_reveal: bool): revealed = new_reveal if not _is_ready: yield(self, "ready") if revealed: print("Reveal card") $Frontside.show() $Backside.hide() else: print("Conceal card") $Frontside.hide() $Backside.show()