Disable collisions when on different layer
Is it possible to disable collisions when an object is moved to a different layer or has a new movement?
In the game you click on an object and it's movement changes. With this new movement I no longer want it's collisions to have any effect.
Ive tried flags but when an object with a flag off collides with an object with a flag on they still bump.
Any suggestions?
Re: Disable collisions when on different layer
try using a variable that stores the layer of the object. If this value is equal for 2 objects, they collide.
and if you want to use flags, toggle it when changing movement so that when its off, you collide, which wont happen if its on
Re: Disable collisions when on different layer
Works like a charm. Thank you.