Once you have added an extension to the Asset Browser, you should give it a name and a version number and also set which platforms you want to export it to. gmez package, you can drag it into the IDE to import it, or go under the "Tools" menu and select "Import Local Package". Normally 3rd party extensions will be from the GameMaker Marketplace, and those you have subscribed to will then be listed in the Marketplace Library window which can be installed from there. If you did not get your extension package from the Marketplace, you can still add it to a project by right-clicking anywhere in the Asset Browser and selecting Add Existing, then browsing to the location of the extension to select it. Such functions can also be specific to a certain platform, and you can easily choose which platforms an extension can be used on.įor a step-by-step example on creating an extension, see Creating An Extension.
GAME MAKER STUDIO 2 TUTORIAL PDF CODE
Extension functions can also be linked to external SDK s or source code written in other languages (like Java for Android, Objective-C for iOS, etc.) which can be used to expand your game's functionality (usually used for implementing third party APIs, such as for ads, in-app purchases, and more).Įxtensions can be used for creating a library of functions that you use frequently across all your projects, so instead of having to import the same scripts into every project, you can simply add one extension asset that holds a collection of your favourite functions and constants. An extension package can be used to add a number of additional functions and constant s to the GameMaker Language (GML) and easily transfer them between projects.