Hi Chris. I have some actionlists built in this way
Dialogue with question--> a menu will open, with an input field.
The player put the number in the field and press ok. Once ok is pressed, an action list will be called that stores the menu Element in a global variable and close the menu
The menu is configured to pause gameplay
Once closed, in my action list i check if the varible is equal to the correct answer, but it fails to check, But, if i put a wiat 0.2 before the variable check, everything works correctly.
It's like if when the menu closes, the variable is set in delay...
I have made 25 questions by now and i was wondering if there's no options then putting all those wait before check?
I tried also to put the delay in the button menu action list, but did not worked
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
What are your AC/Unity versions, and can you share screenshots?
version 1.85.5.
https://imgur.com/a/Ax8mygk
You've cropped too much of these - I can't see the surrounding context.
It looks like you're handling the turning on of the Menu, followed by the 0.2 wait you mentioned, in one list. This will be necessary because AC will not be able to process the Actions that follow until the game has become un-paused.
Typically the way to process input is to handle it in a separate ActionList that runs when the input is submitted / menu is turned off, but if you're doing it all in one list then pausing the menu and waiting like this is the necessary way.
thanks!