O
Olezen
Guest
Hello!
I bought GameMaker Studio 2 a couple of days ago, and decided I would continue working on a GMS 1.4 project. This was a newer project, so I had not yet imported some of my standard engine stuff.
One of the things I didn't get around to importing, was a system that would automatically create objects on every tile in the room, for collisions with the player.
So I decided I would attempt to remake that system in GMS 2.0. I immediately found out that the function "tile_layer_find" was missing.
So my question is as follows: Is there any function I can use to "detect" every tile on a certain layer in a room?
EDIT:
I tried importing a project that already had the system in place. It worked fine, and created the objects where they should be created. I checked the room, and found out it worked because the tiles were sprites (only part of the tileset sprite) on an asset layer. I tried creating another layer at the same depth, and placed some tiles on it, and it did not create the objects.
Is there any way to check for tiles at a position in a room now that "tile_layer_find" is obsolete?
- Olezen
I bought GameMaker Studio 2 a couple of days ago, and decided I would continue working on a GMS 1.4 project. This was a newer project, so I had not yet imported some of my standard engine stuff.
One of the things I didn't get around to importing, was a system that would automatically create objects on every tile in the room, for collisions with the player.
So I decided I would attempt to remake that system in GMS 2.0. I immediately found out that the function "tile_layer_find" was missing.
So my question is as follows: Is there any function I can use to "detect" every tile on a certain layer in a room?
EDIT:
I tried importing a project that already had the system in place. It worked fine, and created the objects where they should be created. I checked the room, and found out it worked because the tiles were sprites (only part of the tileset sprite) on an asset layer. I tried creating another layer at the same depth, and placed some tiles on it, and it did not create the objects.
Is there any way to check for tiles at a position in a room now that "tile_layer_find" is obsolete?
- Olezen
Last edited by a moderator: