Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hello, the changelog bit is for function name() : parent() constructor {}, while yours must be name = function() : parent() constructor {}, which are different things both in base GML and GMLive.

I’ll see about it, but generally constructors are a bit of a painful topic as many things can’t be replicated in current GML - e.g. constructor methods should be method(undefined, <script>) but the bound self-value is where I’m storing the metadata so that GMLive knows what we should be executing. It’ll likely be that GMLive will pretend to understand what you wanted there but stuff like

function some() {
    live_auto_call;
    var ctr = function() : parent() constructor { }
    return new ctr();
}

will not work, only

ctr = function() : parent() constructor {
    live_name = "some constructor";
    live_auto_call;
    ...
}

Oh okay! Thanks alot for help with that