Files
wordle-godot/Keyboard.gd
2022-08-13 21:03:56 -04:00

37 lines
715 B
GDScript3

extends Control
#onready var tryNum = get_node("../Main.tryNum")
var tryNum = 1
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# 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):
# pass
func tryCheck():
var try
if tryNum == 1:
try = get_node("Try1")
elif tryNum == 2:
try = get_node("Try2")
elif tryNum == 3:
try = get_node("Try3")
elif tryNum == 4:
try = get_node("Try4")
elif tryNum == 5:
try = get_node("Try5")
else:
pass
return try
func _on_A_pressed():
pass # Replace with function body.