Hey guys, Im using the basic character motor and character controller scripts but im trying to edit them in such a way that they only accept left and right motion, at the moment the game works fine, its just that if you press “up or down” the character falls off the edge. any help would be much appreciated. ![]()
1 Answer
1Hi Davidc,
If it’s the CharacterMotor.js the quickest way would probably be to do a search for the variables:
var maxForwardSpeed : float = 10.0;
var maxSidewaysSpeed : float = 10.0;
var maxBackwardsSpeed : float = 10.0;
And set the relevant ones to 0.
Similar situation for any other motor/movement scirpt. Either set the max speeds to 0 or delete the code that defines the inputs if they are obvious.
Rob