Deadly Serious Media
Member
Hey everyone!
So I'm working on our third GM game and needed a problem solved. Not sure if I did it right but it works for my purposes.
We wanted destructable ground tiles but placing 8x8 px tiles all over the place was a pain. I build this simple object spawner. You place a ground marker in the room and scale as desired. The code spawns the ground objects and stops when the area is full.
Area Spawner Download
Area Spawner Guidelines
-Your room grid should match your ground tile. This prevents you from scaling in a way that cuts a tile in half. Not sure the code would work if that happened.
-Just set the height and width of your ground object in the ground marker. It should do the rest.
Let me know if you fins any bugs. As I said, we are still only stratching the surface of GM I'm sure. I'm also fairly certain there is a more elegant way of doing this.
So I'm working on our third GM game and needed a problem solved. Not sure if I did it right but it works for my purposes.
We wanted destructable ground tiles but placing 8x8 px tiles all over the place was a pain. I build this simple object spawner. You place a ground marker in the room and scale as desired. The code spawns the ground objects and stops when the area is full.
Area Spawner Download
Area Spawner Guidelines
-Your room grid should match your ground tile. This prevents you from scaling in a way that cuts a tile in half. Not sure the code would work if that happened.
-Just set the height and width of your ground object in the ground marker. It should do the rest.
Let me know if you fins any bugs. As I said, we are still only stratching the surface of GM I'm sure. I'm also fairly certain there is a more elegant way of doing this.
Last edited: