Assigning a tile a name...?
by Paul Davis · in Torque Game Builder · 11/06/2007 (11:26 am) · 3 replies
Ok, I've looked everywhere and found nothing, my question is:
how can you test when you've collided with a specific tile?
and how do you name individual tiles?,
Thanks,
P
how can you test when you've collided with a specific tile?
and how do you name individual tiles?,
Thanks,
P
About the author
Associate James Ford
Sickhead Games
When you collide with a tile the tile coords should be passed into oncollision as a parameter. Although I personally had some difficulty getting this working.
Then test the value of %data and do whatever appropriate.