as previously said i want to make the ‘dialoguebox.visible’ false after inputing confirm (witch is already being used to open the ‘dialoguebox’ in the first place)
i’ve tried to use ‘await Input.is_action_just_pressed (“confirm”)’ but that didn’t await for anything. I even tested the print(Input.is…just_pressed (“confirm”)) and it worked fine
next i tried to se if the game was registering me opening the box and closing it in the same frame because the button was pressed on that frame and after putting a dalay of a second before the await it didn’t fix anything
please help I’ve been stuck at this for the whole day and i couldn’t find the solution anywhere.
Thanks for reading!
functions run from top to bottom, await can interrupt them but it’s best to avoid await as much as possible. You could use _unhandled_input to hide the sign when such an input is pressed
so i have tried that but the ‘dialoguebox’ still went invisible instantly as i read it.
at least i think so, the “you’re reading the sign” message showed up so the code did tun correctly
i don’t know if this would help or just make this more confusing but there’s a whole lot of code that happens to run that ‘_on_interact()’ function that may help figure out what isn’t working here.
should i send it? its a pretty long sequence. I followed a random youtube video on making an interactable