GameMaker Studio 2 Desktop

GameMaker Studio 2 Desktop

OctalSmile Feb 4, 2018 @ 8:33pm
Can I Attach an Object to a Tileset?
Gamemaker Studio 2 is designed for the use of the new tileset system, but I think it would be a lot eaier to design my game if I could use objects for collision, creating objects, deleting objects, and more. I could code the game more easily. But the problem is, the room editor is not designed for easily adding and deleting large groups of objects and there are many advantages to tiles such as autotiling. Can I attach an object to a tileset? What I mean is deleting an object during the game would delete a tile connected to it. I could set up an autotile and have the game put an block object where every tile is. Is this possible. If not, are there any close alternatives to serve these functions?
< >
Showing 1-3 of 3 comments
Thew Feb 5, 2018 @ 10:41am 
You definitely could write a system where your objects interact with tiles. For example, in an object's "Destroy" event you could write a script that checks for the tile that is under the object and set that tile to be blank. (the tilemap_get_at_pixel() function would be very useful for that)

And if you weren't already aware, you can hold alt in the room editor to "paint" with the selected object.
OctalSmile Feb 5, 2018 @ 2:58pm 
Originally posted by Thew:
And if you weren't already aware, you can hold alt in the room editor to "paint" with the selected object.

I know you can paint objects into a room, but I heard autotiles cannot change after the game room is started yet. I'm also not sure on how to delete groups of objects easily.
Last edited by OctalSmile; Feb 5, 2018 @ 3:00pm
Thew Feb 5, 2018 @ 3:04pm 
The built-in auto tiling system is a little limited at the moment. If it won't work for your current project, you could always write your own system for it. Check out this tutorial on how to use bitmasking to create some simple auto tiling that you'll have much more control over:

https://gamedevelopment.tutsplus.com/tutorials/how-to-use-tile-bitmasking-to-auto-tile-your-level-layouts--cms-25673
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Feb 4, 2018 @ 8:33pm
Posts: 3