Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ran across a couple of problems...

A topic by Knight-of-Alara created Sep 28, 2021 Views: 153 Replies: 2
Viewing posts 1 to 2
(1 edit)

GMS2 doesn't seem to recognize these files as GMS2 files, and thus will not allow them to be imported. This is really only an issue when trying to import the "o_AfterImage" object.  In addition to that,  looking at the f_CreateAfterImage GML script, it seems this uses the older version of "instance_create" from GM1.4, which is incompatible with GMS2. Considering the methods this script calls its arguments, there doesn't seem to be a smooth way to transition this script to the modern "instant_create_layer" and "instant_create_depth" functions. Because of these issues, I'm not sure that this asset should be advertised for GMS2 when it seems that it was created in and for GMS1.4.  I'd very much appreciate some assistance though. 

Developer

Just swap the call to meet your needs. I used an aliased function to keep compatibility with some old code. The new syntax is “instance_create_depth” providing and X, a Y, and a layer value. It should have automatically done that for you, but gamemaker is what gamemaker is. Lol

I can upload a new version of it soon.

It sadly didn't do any of the compatibility stuff for me automatically because I was unable to import anything into gms2 to begin with. If this product included an example, I'm sure it would work fine.