I am attempting to make a simple platforming character controller and I cannot seem for the life of me get this to work. Please if anyone could help I would be so so so appreciative!

Errors should be on line 19, 30, and 34

using UnityEngine;
using System.Collections;
using CnControls;

public class PlayerController : MonoBehaviour
{
	
	//Movement
	public float speed;
	public float jump;
	float moveVelocity;
	
	//Grounded Vars
	bool grounded = true;
	
	void Update ()
	{
		//Jumping
		if (CnInputManager.GetAxis ("Vertical"))
		{
			if(grounded)
			{
				GetComponent<Rigidbody2D> ().velocity = new Vector2 (GetComponent<Rigidbody2D> ().velocity.x, jump);
			}
		}
		
		moveVelocity = 0;
		
		//Left Right Movement
		if (CnInputManager.GetAxis ("Horizontal"))
		{
			moveVelocity = -speed;
		}
		if (CnInputManager.GetAxis ("Horizontal"))
		{
			moveVelocity = speed;
		}
		
		GetComponent<Rigidbody2D> ().velocity = new Vector2 (moveVelocity, GetComponent<Rigidbody2D> ().velocity.y);
		
	}
	//Check if Grounded
	void OnTriggerEnter2D()
	{
		grounded = true;
	}
	void OnTriggerExit2D()
	{
		grounded = false;
	}
}

*Note: CnControls is what I am using to control the character look it up in the asset store I recommend it to anyone who is trying to make a mobile game (I am hints why I am using it)

Again thanks to anyone who offers any assistance! :smiley:

The issue here is that Horizontal and Vertical are floats from -1 to 1. Where 1 is left in your case and -1 right.

     if (CnInputManager.GetAxis ("Vertical") > 0)
     {
         if(grounded)
         {
             GetComponent<Rigidbody2D> ().velocity = new Vector2 (GetComponent<Rigidbody2D> ().velocity.x, jump);
         }
     }
     
     moveVelocity = 0;
     
     //Left Right Movement
     if (CnInputManager.GetAxis ("Horizontal") < 0)
     {
         moveVelocity = -speed;
     }
     if (CnInputManager.GetAxis ("Horizontal") > 0)
     {
         moveVelocity = speed;
     }