GML Instantiable Constructors is a framework created in GameMaker Language managing GameMaker object instances and overarching application loop through constructors.
Please visit the project Wiki for more information and examples.
This project can be imported into other GameMaker projects by creating an importable package from the latest code in the master branch and including its dependencies.
- Clone this repository.
- Open the project of the cloned repository in GameMaker.
- In the
Tools
toolbar, open theCreate Local Package
menu. - In
Package Details
, fillDisplay name
andPackage ID (Filename)
fields with any name, also selectAdd All
in the resource selection. Then selectOK
. - Select where the package file should be saved on the device.
- Open the project in GameMaker into which the package will be imported.
- In the
Tools
toolbar, open theImport Local Package
menu. - Choose the previously saved package file and open it.
- Choose
Add All
and thenImport
. The release should now be imported and appear in theAsset Browser
, unless files with the same name have already existed in the project, in which case they can be replaced or skipped. - Confirm that each individual file was imported successfully.
This project uses the following script files from other free and open-source libraries:
struct_merge()
andnull()
from GML Development Toolbox.- Entirety of GML-OOP.
- Visit the link of each raw script file linked from GML Development Toolbox. Then perform following steps for each of them:
1.1. Select and copy the entire file. (Keyboard shortcuts:Ctrl+A
to select the entire content,Ctrl+C
to copy it.)
1.2. In GameMaker with opened project that GML Instantiable Constructors was included to, create a script asset with the name of currently copied script and edit it to paste into its content. (Keyboard shortcuts:Alt+C
to create a script asset,F2
to rename the created asset,Ctrl+V
to paste the content.) - Visit the GML-OOP repository and follow initialization instructions found there.
Created, documented and maintained by Mtax.
GameMaker and GameMaker Language are properties of YoYo Games.
This is a third-party project not affiliated with YoYo Games.