Need A Programmers help.

Hello, all. I have two problems.

The first being, what I need help most on; I would like my character to constantly move right, along the X-axis. that way the player can only jump on platforms.

The second, less important thing, is when my character gets to close to a platform and jumps it gets stuck. Im figuring it has to do with Drag, or Friction.

Thanks in advance.

-Justin.

Use the code tag to wrap your codes. Go Advanced and press the # button. Why don’t you use character controller? It’s more simpler for simpler stuff like basic movement jumping and stuff. Unity - Scripting API: CharacterController

to move along the x axis you do this

var speed  =  10;

function Update () {
transform.Translate(speed*Time.deltaTime,0,0);
}