Download

Sidescroller Verticle Movement.

I’m working on a sidescroller and i have areas that i want to have movement on the X axis. (Like Assassins Creed Chronicles style.) I have made a system that allows me to do it. I have X axis movement disabled until the player touches the trigger box on the plane. Then Y axis movement is disabled and X axis is enabled. When the player gets to the other side it reverses. Can anyway think of a better way then this?

Trying to do something like this.
[video]https://youtu.be/BP8obzjPLFA?t=2m16s[/video]

(OnPath Boolean says player is on the plane and to disable Y Axis to prevent leaving it before the end)
Character.png

45fe2420893ba04b4a20c904c598cbc64b7e1462.png

Plane.png

anyone know a way to do this better?