This project has moved and is read-only. For the latest updates, please go here.

[Solved] how do i use OnSeparation this way?

Topics: User Forum
Mar 2, 2013 at 12:42 AM
Hello i am trying to use the on separation event handler on a object that is to act as a zone. so if another object such as "Player" is in the Object "Zone" i can have it do what i need it to do and when the player leaves this zone i would like to change some varibles.

My problem is that since i dont want my player to collide with the zone i return false in the collision event handler, which does not allow me to call on speration event handler for these zones.

How do i use collision event handler and sepration handler if i return false on collision for an object??

or is there another thing i can do for this?

Thanks for the Advice
Mar 2, 2013 at 3:42 AM
Edited Mar 2, 2013 at 3:43 AM
so apparently i answer my own questions i figured out that i can just change the fixture which is my collision zone into a sensor and return true for the collision and i am able to use separation event handler

Thanks WaZz86

No problem man