Tiles world position
by Bruno · in Torque Game Builder · 01/13/2006 (1:04 pm) · 5 replies
Hi
Is there a way to know the tile position in the entire layer, instead of knowing the position in the screen ?
Instead of getting a local position in screen like (30,20) if it is possible to get the world layer position of that tile, like (1020, 340) ??
thanks
Is there a way to know the tile position in the entire layer, instead of knowing the position in the screen ?
Instead of getting a local position in screen like (30,20) if it is possible to get the world layer position of that tile, like (1020, 340) ??
thanks
About the author
#2
01/13/2006 (4:43 pm)
Do you want to post what you did, so someone else who has a similar question in the future knows?
#3
I just placed a dummy tile where i wanted it to be, then when he gets on screen instead of getting the position of the tile, i get the position of the layer..
When i want to go back to that tile position, i just translate the layer to the position i got before, with some offset to compensate minor diferences.
01/13/2006 (5:20 pm)
Yeah sure,I just placed a dummy tile where i wanted it to be, then when he gets on screen instead of getting the position of the tile, i get the position of the layer..
When i want to go back to that tile position, i just translate the layer to the position i got before, with some offset to compensate minor diferences.
#5
http://www.garagegames.com/mg/forums/result.thread.php?qt=28676
01/14/2006 (10:40 am)
Try this thread, it works perfectly :)http://www.garagegames.com/mg/forums/result.thread.php?qt=28676
Torque Owner Bruno