alex, i've come across a small problem.
i'm hiding tiles behind each other, then moving them infront using
ObjSet(idx,O_LAYER,1);
in the code, so that the tile i want at the top is now on layer 1, above everything on layer 0.
that works fine if you just want to view the tile on screen, as it then shows it. however the issue that i have is that i need the game to then 'see' the tile that is showing on top, using
PlayerTouchObjectInRoom(idx)
the problem is that even after moving a tile 'up' a level to level 1, the game still 'chooses' the tile below it (using PlayerTouchObjectInRoom(idx) ), as in the 'stack' of tiles, the tile on top is still the tile on level 0.
i didn't notice this in the dungeons section of TLoD, however in the Archives section i'm using it for something slightly different, and it's causing a major problem.
to see what i mean, do a puzzle (or shake the bush with the key in) in TLOD demo, and then try to view the (now visible) item. you'll find that he tells you it's the tile UNDERNEATH the item, until you pick the item up and put it back down again, at which point that item becomes the tile at the top of the 'pile'.
any thoughts? how would i move a tile 'to front' or 'to back' using the code, as i can by right clicking on it in the map editor?
thanks.
p.s. i also tried leaving it on top, but disabling it, however that bit of code still 'sees' the tile, even tho it's disabled, and it tells you that you're looking at an item which actually isn't visible at that point....