How do I disable two solids colliding eachother?

0 favourites
  • 10 posts
From the Asset Store
This is a Dungeon Master tool & the 1st of 12 Combat Engines from the Building Combat Engines for Browser Games workshop
  • Hi. I've been trying to fix an issue with two enemies for a while and I couldn't came up with a decent solution.

    I have two solid brick enemies, one with goes up and falls down to the floor with platform behaviour gravity. I use move to to get it up again. On collision with solid stop move to and activate platform for the falling. On land activate move to.

    The one one uses ZigZag behaviour and it goes left to right (or right to left). On collision with the tilemap turns direction.

    I need to use solid on both enemies in order for these AI events to work. Now when both collide eachther they start draggin eachother around the layout. I tried stuff like on collision with eachother, overlapping eachother, etc disable collisions, but there's always a tiny dragging.

    How would you fix this ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Do the enemies have to be solid?

  • Do the enemies have to be solid?

    Yes they do, because I use the solid behaviour to make the triggers, the mechanics and the "feeling". I tried without solids and I can't achieve the same effect.

  • If you use your method but have a slightly larger non-solid sprite around the enemy object that you use for collision detection do they still drag?

  • If you use your method but have a slightly larger non-solid sprite around the enemy object that you use for collision detection do they still drag?

    I dont understand what do you mean

  • I would use traffic rules. Say the fallling one always has right of way. Then the zigzag one needs to change direction when overlapping the other one at an offset (6 pixels ?).

  • I would use traffic rules. Say the fallling one always has right of way. Then the zigzag one needs to change direction when overlapping the other one at an offset (6 pixels ?).

    Yeah I can't do that. Both need to follow their path.

  • Well this plinkie's working solution.

    https://www.dropbox.com/s/m4tfbymxs7ylc ... .capx?dl=0

    But then again, the solids have no use now. I suppose the player can jump on the moving parts. With this (and basically any other solution to archive this with solids) the player will fall trough them when they overlap.

  • Well this plinkie's working solution.

    https://www.dropbox.com/s/m4tfbymxs7ylc ... .capx?dl=0

    But then again, the solids have no use now. I suppose the player can jump on the moving parts. With this (and basically any other solution to archive this with solids) the player will fall trough them when they overlap.

    They still get stopped on collision sometimes if you notice

  • They do ? Then it runs at a low FPS at your place ? Make the sensors bigger?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)