Create a One-Way wall?

0 favourites
  • 4 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • Okay, so I would like to make a wall that the player can pass through, one-way, but if they try to go back, they cannot. Is this possible? Any ideas?

  • Side view or top view?

    Quick idea - Use a thin invisible helper sprite along one side of your wall. If the player is overlapping the wall, set the helper sprite to not be solid. If the player is not overlapping the wall, set the helper sprite to be solid and push out solids.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Side view or top view?

    Quick idea - Use a thin invisible helper sprite along one side of your wall. If the player is overlapping the wall, set the helper sprite to not be solid. If the player is not overlapping the wall, set the helper sprite to be solid and push out solids.

    I posted that I didn't understand, but I deleted it after I carefully reread it over. I think I've got it. Thanks!

  • Do a check to see if your player.x is < less than or > greater than the door.x and turn the solid behaviour off or on depending on your chosen side. hope that helps.

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