There's a lot of ways to handle a turn order, and it all sort of comes down to how your specific game goes about deciding it when it comes to how to put that together, but even the AI would have to follow that same basic rule if it's not their turn, they can't do anything. This Event happens when the object's current sprite has finished it's animation. It's a terrible way to do things.ĭaynar's got things pretty covered there's a lot of little things people can do differently by situation here, but basically you just want to track when the player's turn is actually up before allowing them to actively do anything. 1 Answer Sorted by: 1 I think there are two things that you can do to improve this: Instead of guessing through (imageindex > 6 & imageindex < 8), you can also use the Animation End Event. Your animation wouldn't run, your AI wouldn't consider its options, it would simply freeze everything before moving on to the next singular step in GM's process. Languages with wait() commands (including older versions of GM) simply tell the processor to halt the program entirely for a set period nothing runs, nothing happens, and you should virtually never, ever need it, which is the thinking behind most non-Windows platforms not allowing it at all (and thus GM's removal of the function when becoming multiplatform).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |