🔴Game Maker Studio 2 | Basics – Variables: Instance, local, global, inbuild, enum, macros



This basic video tutorial is meant for beginners who are not sure what the different variables mean and how they work.

The most commonly used variables are the instance variables (blue color) that are being used in the instance itself and not to be confused with the green colored inbuild ones which are predefined variable that define specific attributes of the instance in question. Besides these two, there you will find the local variables (brown color) useful which are not staying in the memory of the game because they get discarded after the end of the event they have been used. These are great for one time checks, loops etc. . Then there are the global variables (purple color) which are defined by the prexif/word “global” with an acessor which is a dot. These can be used in outside the instance. The last types of variables are the constants (red color) which are being preloaded into memory without the instance being the the room. These are being initialized/set once to be used as a static variable, which cannot be change during the runtime. The first one is macros which has very specific syntax (see video) and the enum, which are a group constants.

▶ 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://baggersoriginals.com/

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

Article Categories:
Game

Comments

  • I built a game in demo, and know have a licensed account. How do I transfer/reconfigure that game for android?

    George Washington July 4, 2020 10:36 am Reply
  • Very useful, thanks.

    Xablep88 July 4, 2020 10:36 am Reply
  • You are so underrated.

    MASK July 4, 2020 10:36 am Reply
  • Thanks, great to reaffirm these things 🙂

    Karlstens July 4, 2020 10:36 am Reply
  • You should do a complete platformer or top down tutorials.

    claudiuboy83 July 4, 2020 10:36 am Reply
  • Great topic to cover, I know what sometimes people want to overlook the basics, but being great at something means you gotta be great at the fundamentals. For example in art. If you know color, and how to paint, but don't know how to draw. Your painting will look bad because the base of the painting "drawing" will be bad. The best of the best and the pros have all mastered fundamentals.

    tutata July 4, 2020 10:36 am Reply
  • First

    Krystian Przyjemski July 4, 2020 10:36 am Reply

Leave a Reply

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