How do I make no collision areas

0 favourites
  • 2 posts
  • Is there a way to make some sort of collision masking or blending. Like let's say I have a solid area, and I want a sprite moving over that area that nullifies the collision on it.

    Easiest exemple would be in a top down game, moving blocks over water: You can't walk over water, but only on the blocks that move over the water, and you can move in the area of the block, but not outside of it unless another block is near (or you're out of the solid zone)

    What is the best or the easiest way to do this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you can use a disable collission action on an object based on whatever condition you setup.

    or you can use a plugin like chipmunk phyics that has collision groups and prevent certain objects from colliding with others based on that group.

    for your top down game example question.

    make the water a solid object. Then if the player is next to a rock block. and pushes up (to push the block into the water lets say). you can use the "on collision at offset" action to check if there's water behind the rock, and if so, disable the collision on the water, and move the block into its position.

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