Get Tile Position on Collision?
by Kiyaku · in Torque Game Builder · 06/27/2007 (6:38 am) · 2 replies
Hi, im planing to do a breakout clon game.
So when i collide with a tile on a tilelayer, is it possible to get it's position back so i can delete this tile?
So when i collide with a tile on a tilelayer, is it possible to get it's position back so i can delete this tile?
Torque Owner Adam Larson
So, you could do something like this:
function t2dTileLayer::onCollision(%srcObject, %dstObject, %srcRef, %dstRef, %time, %normal, %contacts, %points) { %srcObject.clearTile(%srcRef); }