Pir Jacques
Member
SOLVED: For anyone wondering about the title question as well, tile IDs are assigned left to right, top to bottom, starting with value 0 in the upper-left corner.
Title. I'm working on a tile-based collision system, and while I have all the movement and stopping code down, I need the part that identifies tiles to collide with. I've heard of systems that use a separate collision layer to do this, using one tile that's registered as a wall with ID 1 and then testing the appropriate commands for 0 or 1, but I wish to do both my aesthetic tiles and my collisions all with one tile layer. To do this, my game will have a list of every tile on the tileset that should be registered as a wall, and then test for any tiles on that list to perform collisions with, as per any other collision system.
To make this list, however, I need to know one crucial bit of information about how Gamemaker handles its tiles: How does it assign tile IDs? What's the pattern to it? Does it just assign them in order, left to right and top to bottom, or is there another pattern to it? I've checked the documentation, but found nothing on what order the game assigns tile IDs in. Of course, I might just be blind...
Thanks for the assistance!
~Pir
Title. I'm working on a tile-based collision system, and while I have all the movement and stopping code down, I need the part that identifies tiles to collide with. I've heard of systems that use a separate collision layer to do this, using one tile that's registered as a wall with ID 1 and then testing the appropriate commands for 0 or 1, but I wish to do both my aesthetic tiles and my collisions all with one tile layer. To do this, my game will have a list of every tile on the tileset that should be registered as a wall, and then test for any tiles on that list to perform collisions with, as per any other collision system.
To make this list, however, I need to know one crucial bit of information about how Gamemaker handles its tiles: How does it assign tile IDs? What's the pattern to it? Does it just assign them in order, left to right and top to bottom, or is there another pattern to it? I've checked the documentation, but found nothing on what order the game assigns tile IDs in. Of course, I might just be blind...
Thanks for the assistance!
~Pir
Last edited: