First of all, always best to ask here first, not RedditAduro91 wrote: ↑Thu Dec 21, 2023 2:53 amThis code I've asked about is the motor behind the game running. When I used Hypercard as a kid I could never create a game in which you had to do something before something else happens. This is because I would create buttons with something like wait 1 second, go to card "gameover" or what have you. Then I would notice that I can't click any buttons before the 1 second is up, same with if I was cycling through cards i.e., you can't shoot the bad guy before he shoots you, for example.
The second-best place to ask stuff is usually stackOverflow.
Second of all, and most importantly: if this is simply to get around an issue with “wait”, which is an interface-blocking action, you can either use “send in time” as above OR “wait with messages” which is also a non-blocking action.
Another tip which I only became aware of very recently is that if you are using “move in time” to animate movement, which is also an interface-blocking action, you can add “without waiting” to the end of the command which turns it into a non-blocking command!
By and large this is all in the Dictionary although as this is usually laconic it needs careful reading, as it’s easy to miss stuff like this.
What it boils down to is if you post your problem code directly here someone is bound to respond with a solution in a day or two (usually!)
Glad you got your game working though! If it’s commercial you can post about it in the “Made with LiveCode” subforum to show what you’re doing, but if not commercial do also share the game directly here when done!
Stam