Page 1 of 1

Wait until group is hidden

Posted: Fri Apr 03, 2020 2:36 am
by anonimus
Hi there, I'm new at livecode and I have a question
I have made a 2 players game and a code that detects if they had chosen the same name (it might break the game) and answers them with a personalized answer box (is just a group of fields). So i was wondering if there was any way to make the code wait until the answer box is hidden.
Thanks and sorry for the bad english

Re: Wait until group is hidden

Posted: Fri Apr 03, 2020 8:46 am
by richmond62

Code: Select all

wait 3 seconds

Re: Wait until group is hidden

Posted: Fri Apr 03, 2020 1:20 pm
by Klaus
Hi anonimus,

welcome to the forum!

Since the ASK and ANSWER dialogs are MODAL, this will happen automatically!

Code: Select all

...
dothis
dothat
answer "Hi there!"
donanotherthing
...
You will see the dialog and the next handler -> doanotherthing will only be executed AFTER
the user has clicked OK in the Answer dialog! :D
If that is what you mean.


Best

Klaus