I am currently working on a box-moving puzzle game using TileMovement behaviors.
When I push a block into a wall, the block stops as it should. However, if I try to keep moving in the same direction, my Player character will move into the box, rather than simply not moving.
Basically, I am wondering if there is a way to check if an object CAN'T move, rather than "if can move."
For example, if the box can't move right (because it's touching the wall), then the player should also not be able to move right if it is already touching the box.
Obviously, I can't make the box solid, because then it is unable to move at all.
Any help would be appreciated!