summaryrefslogtreecommitdiff
path: root/checkbox.gd
blob: 8ed4cb7eb4fae8974a05b34c0313c26f711a2823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
extends Sprite2D

@export var state = false


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
	frame = 1 if state else 0


func _on_button_pressed() -> void:
	state = !state
	print("press")