This video tutorial shows you what the exit; and break; statement/command do in gamemaker studio. To put it into a nutshell, exit is very handy and is being used to ignore follow up code. This quite useful to save resources during runtime when not needed. Exit can be put into any event or script and saves some frames on every program or game.

The break statement is mostly used to break out of a switch statement but can be used in loop to cancel that at some point. So basically break is very handy to make sure the code is not being run when for example a match has been found in a switch statement.

Cool art used in thumb:
CC0 by Jetrel
https://opengameart.org/content/giant-smw-style-button


▶ Gamemaker Studio: https://www.yoyogames.com/get

▶ Trial limitations: https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations

🎮 My free game Clunky souls:
https://1up-indie2.itch.io/clunky-souls
💓 My assets:
Get some assets at itch.io https://1up-indie2.itch.io/

👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie


Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb

1up Indie

View all posts

Add comment

Your email address will not be published.