Toggle / Disable Collision in game
daniel.robert.campbell
Member Posts: 251
So right now I have about 20 instances of an object that collide with my player character. I want them to collide with the player character, but stop colliding under certain conditions. Is there a simple way to disable collision between two actors? Any help would be greatly appreciated.
Comments
You kind of said it here already. Create a rule that has the conditions for when the actor can collide. Then put the collide behaviour inside the rule.
Now, when the conditions you set are not true, the actor won´t collide.
Mental Donkey Games
Website - Facebook - Twitter
Thanks. I think I understand how that will work. It's just going to be weird wrapping my head around building in logic of when it should have collision as oppose to when it shouldn't. I get the feeling I've overthinking it though. I'll play around with it. I'm pretty sure I understand how to set this up. Thanks!
It's as simple as MentalDonkeyGames says, just have a rule like this . . .
When condition is true
--Collide with object