setting Individual tiles to different scene object layers?
by David Bax · in Torque Game Builder · 04/23/2009 (11:41 pm) · 0 replies
Is it possible, maybe through a tile script, to set a tile to a different scene object layer than the rest of the tile layer?
Basically what I'm trying to achieve is this: I have a small platformer I started making to help me learn TGB. I am using a tilemap for my level. I set my character to a layer above the tilemap so when bumping into a wall the overlapping part of the character (due to it's collision definition) draws above the tilemap tiles. This works fine until the character falls in a pool of slime.
I've temporarily solved it by making another tile map directly over the other and making sure it lines up well. Then I refill in the new map with the slime pools I previously placed, this tile map is set to the layer above the player, so the player isn't drawn in front of the slime. This method seems a little tedious and a bit overkill...
Is there another way?
Basically what I'm trying to achieve is this: I have a small platformer I started making to help me learn TGB. I am using a tilemap for my level. I set my character to a layer above the tilemap so when bumping into a wall the overlapping part of the character (due to it's collision definition) draws above the tilemap tiles. This works fine until the character falls in a pool of slime.
I've temporarily solved it by making another tile map directly over the other and making sure it lines up well. Then I refill in the new map with the slime pools I previously placed, this tile map is set to the layer above the player, so the player isn't drawn in front of the slime. This method seems a little tedious and a bit overkill...
Is there another way?
About the author