🔴Game Maker Studio 2 | Basics - Exit vs Break

Channel:
Subscribers:
11,900
Published on ● Video Link: https://www.youtube.com/watch?v=DW5AOjqSjX0



Duration: 5:06
1,153 views
47


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







Tags:
game maker exit
game maker exit for loop
game maker exit script
game maker exit command
gamemaker studio exit
gamemaker studio 2 exit
game maker studio 2 break
game maker break
game maker save resources