Player movement in forward as well as in Left-Right direction

Updated on November 9, 2018 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on November 8, 2018

I am trying to make a game in unity in which the player continuously jumps in the forward direction and moves left & right on swipe in android just like in one of the Ketchup game stairs.

When I swipe for left & right movement, it should not affect the velocity in the forward direction.

For clear understanding, I am dropping the gameplay link.

  • Liked by
0 on November 9, 2018

Why should the player have a velocity at all? You can also let the player only move to the left and right and let the world move towards the player, then you only have to Lerp the X/Z position to the swipe location of the user.

  • Liked by