• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

GMS 2 Create Object on a (matching) tile

Hi - I am trying to create an object where a tile/tileset has been placed.

I have a background layer, which I am building with tilesets, which will not change or be interacted with. But I need an identical layer above it made up of objects.

Simplified, something like: If tileset at (x,y) = grass_tileset{instance_create_layer(x,y,"objects",o_grass);} etc....

I have tried various tileset_get... functions, but cannot get it to work.

Any ideas? Many thanks.