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.
(OnPath Boolean says player is on the plane and to disable Y Axis to prevent leaving it before the end)