Hi,
I'm new to Playmaker, and I have a problem with 2D movement. I have a square that I want to move only one direction at a time when I tap a key: up, down, left, or right, until it hits a block. Then the player can move in a new direction after a collision at a block. As it's moving, I don't want the player to be able to change direction. In each movement state, I finish the state using a Collision 2D Event. I've tried On Collision Enter 2D at first, but if I collide with a wall and move in the direction of the wall again, the movement State doesn't exit, and the player is frozen.
So instead, the Collision event I'm using to exit the movement states is On Collision Stay 2D. It gets rid of the problem of being stuck and not being able to move. But it causes a new problem. Once I hit a block, I can't move in an adjacent direction, because sliding against the block causes my square to stop moving. I have to tap the key several times to get free from the block. There is a link to a video of what's happening. And there are screenshots of the main Check For Movement state and the Move Right State.
Any ideas of what I can do to fix this? Thanks in advance for even reading this.
Video of issue: