Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to lock a player on an axis so they don't go off the path?

Asked by
Onigo 45
7 years ago

I am currently working on a side-scrolling and I want to lock the players on the z axis so they cannot move off of the path, I already have it so when the player presses s it does nothing and when they press w all it does is make them jump, however objects on the path or jumping certain ways can make the player get knocked off a bit. Is there a way I can keep them on the path I want them off that does not use invisible bricks on either side of them? (Messes with a tool's aim in the game.)

Answer this question