Code had an error saying get_node: (Node not found). What's wrong with my code? This is tictactoe btw

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mortycaii

func _on_Cel_11_pressed():
if board[0] ==“”:
board[0] = current_player
$Board/Cel_11_btn.set_text(current_player)
if win_check_11_12_13() or win_check_11_21_31() or win_check_11_22_33():
game_over(1)
elif check_draw():
game_over(2)
else:
swap_player()

are you sure that’s where the error occured?

umma | 2022-01-31 12:04

show the onready variables, that’s probably where the error happened

umma | 2022-01-31 12:05

:bust_in_silhouette: Reply From: gm130993

i guess it can be either an onready variable or a small mistake when writing the name of the node