Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

You could make a script that assigns all of these names into a temporary variable and is never called - that’s how smart that warning is.

Good idea, I did this and was able to get rid of all warnings EXCEPT for one which is suspicious, l__g4.

According to the code:

if(l__g3.__enumIndex__==5)var l__g4=l__g3.h_d; else continue;

I don't see the point of initialising that local variable and doing nothing with it.

There are likely a few of these - Haxe compiler tends to preserve temporary variables when unpacking algebraic data types, and wiggling code around just so that it doesn’t do that is usually not worth it

The new release spots a GMLive_notOnce script which references all of the “single” identifiers so that GMS2 IDE can shut up about that.