extends Sprite2D # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: self.set_region_rect(Rect2(256,160,256,80)) if(self.get_meta("selected") == true): self.set_region_rect(Rect2(0,160,256,80))