Skip to main content

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

Minor bug with static that you may already know about - doing something like:

function test(_value) constructor {
	if(live_call(_value)) return live_result;
	
	value = undefined;
	set_value(_value);
	
	static set_value =(_value)=> {
		value = _value * 2;
	};
}

causes an error about the set_value script being undefined after the live-reload occurs (putting the set_value call after the static definition works as normal).

Oh bother, and also that’s cursed. Might need a different approach to initializing static variables inside constructors if you’re allowed to use the variables before declaration.