• 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!

Legacy GM Need help with tiles.

Hello,

Is there a way to randomly spawn tile in the world that have a random tile image.

I have a grass background and a couple of grass tiles with flowers on them is there a way to make the flower tiles get created randomly in the world without using several randomly spawning instances with a random image_index.
 

Simon Gust

Member
It is the same process with instances, except that you are using tile_add(background, left, top, width, height, x, y, depth).
instead of an image_index you have left and top arguments, they represent the offset from the x and y axis across the background resource you're using for the tile.
 
It is the same process with instances, except that you are using tile_add(background, left, top, width, height, x, y, depth).
instead of an image_index you have left and top arguments, they represent the offset from the x and y axis across the background resource you're using for the tile.
Thank you for helping me.
 
Top