Hey guys, im trying to edit the character motor so my character can only move on the X axis.
im creating a side scroller and i want to use the original charactermotor but for the life of me i cannot work out how to edit the script in such a way that it stops movement one way but not the other. does anyone have any ideas or suggestions?
what should i be looking for?
has anyone rebuilt the script for a side scroller?
I need to understand a bit more about your desired behaviors. I took a quick look at both scripts. As a starting point, modify line 15 in the PlatformController script to be as follows:
var directionVector = new Vector3(Input.GetAxis("Horizontal"), 0, 0);
Give me feedback on how this does or does not meet your needs.