Character movement in 3 lanes

Hello,

I’m absolute new to this engine and I’m creating a simple game to explore it.
I want to make my character snap between 3 lanes (left,middle,right).

Currently I’m using Swipe Gesture and PixelPerfectMovement

And I’m trying to use invisible boxes which will limit the movement of the character

Is there any better approach to do that movement?

I don’t think you need to use invisible boxes. You could just use a variable on the player to save the state of which column they’re in i.e. 1, 2, 3 or left, middle, right.

The have your conditions set up so that if they are in the left lane, swiping left won’t do anything.

1 Like