Toggle / Disable Collision in game

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

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276
    edited August 2016

    @daniel.robert.campbell said:
    I want them to collide with the player character, but stop colliding under certain conditions.

    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!

  • SocksSocks London, UK.Member Posts: 12,822

    @daniel.robert.campbell said:
    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.

    It's as simple as MentalDonkeyGames says, just have a rule like this . . .

    When condition is true
    --Collide with object

Sign In or Register to comment.