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.
Develop games in your browser. Powerful, performant & highly capable.
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.