• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Using tilemap as object

B

Bibek Humagain

Guest
Hello everybody

I wanna ask you all if there is any way to use tilemap as objects. Not just for colliding with it but also performing other events that we can do with other objects.

Please help

Thanks you
 
H

hunijkah

Guest
The way I've always done this is:
If the tile you want to interact with was 32x32,
  1. Create a sprite named "spr_black_square" 32x32 with just a solid color (black for example).
  2. Create an object called "obj_tile_interaction" that has this sprite.
  3. Double click on the object on the side menu and uncheck "Visibile"
  4. Place this object in your room over the tile that you want to interact with as an object.
  5. Now objects can interact with "obj_tile_interaction" and it can act as if it were that tile. It will not show on the map because you made it invisible.
 
Top