🔴Game Maker Studio 2 | Basics – Exit vs Break

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

▶ Gamemaker Studio:

▶ Trial limitations:

🎮 My free game Clunky souls:

💓 My assets:
Get some assets at itch.io

👑 Support me and get fresh game art and game maker projects every month:

Follow me on:
📸 Instangram:
🐦 Twitter:
💬 Discord:

Nguồn: https://gayawana.org/

Xem thêm bài viết khác: https://gayawana.org/game/

Article Categories:


  • Muito bom explicou muita coisa que eu precisava saber .
    Estou nos finais do meu projeto e gostaria que vc testa-se ele após concluído.
    Vc gostará muito das animações. Kkkk

    Reforcil Hidraulica July 22, 2020 1:57 pm Reply
  • @1upindie the amount of content you create is crazy! You are a madman! Thnx

    tutata July 22, 2020 1:57 pm Reply

Leave a Reply

Your email address will not be published. Required fields are marked *