Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

Livecoding for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

[Fixed in 1.0.63+] Calling functions

A topic by DirectalArrow created Nov 12, 2022 Views: 161 Replies: 1
Viewing posts 1 to 2
(1 edit)

Recently i learned that some functions now supports structs, for example

instance_create_depth(0,0,0,obj_test,{ myNum: 0})

Using structs like these, GMLive spits out a compiler error, saying how it expected that one less argument

Developer

I’ll fix this in the next release, but for now you can use live_function_add to override the signature:

live_function_add("instance_create_depth(x, y, depth, obj, ?vars)", instance_create_depth);
live_function_add("instance_create_layer(x, y, layer, obj, ?vars)", instance_create_layer);