Game Development Community

BETA 1.1 -Removing Tile collision reponse when loading a TileMap

by Rivage · in Torque Game Builder · 02/18/2006 (4:25 am) · 0 replies

Hello :)

This problem is probably covered somewhere on the TGB wiki but i can't find it...

I'm loading a TileMap with collision definition setup.
One Layer is setup like this :
$collisionLayer.setCollisionActive(false, true);
The onCollision CallBack is correctly feed so the "simulation" work the way i want.

However i need to detect when my player collect GoldenCoin (for example) to remove this goldenCoin tile and increase stats. The problem is that just before being removed the GoldenCoin emit collisions reponses.
I would like to remove this issue so my player can pass through this tile smoothly.

GoldenCoin have "CustomData". Do i have to parse manually the tileLayer to deactivate the collisionActivity ?
Or is there anykind of solution to remove the last collision event ?

(setCollisionSuppress() is hard to use in this situation as the tile is clear by then end).

Thanks for all and sorry for all these begginer questions ^^

ps : The TileMap Gui editor should offer these collisions possibilities ( setCollisionActive(option1,option2) ).