Ayus use this code to get a perfect geometry dase
using UnityEngine;using System.Collections;public class PlayerController : MonoBehaviour {public float speed;public float jumpPower;private Rigidbody2D body2d;private bool grounded = false;// Use this for initializationvoid Start () {body2d = <span class="kwd" <this<="" span="">>span class="pun">.</span>GetComponent<Rigidbody2D>();}// Update is called once per framevoid FixedUpdate () {body2d.velocity = Vector2.right * speed;if (Input.GetMouseButton(0) && grounded){body2d.AddForce(Vector2.up * jumpPower);}}private void OnCollisionStay2D(Collision2D collision){if(collision.gameObject.tag == "ground"){grounded = true;}}private void OnCollisionExit2D(Collision2D collision){if (collision.gameObject.tag == "ground"){grounded = false;}}
Note: Searched internet for hours and finally get it i will give the link to https://answers.unity.com/questions/1194202/jump-like-geometry-dash-game.html. Bring it on next update and yeah thank me later. Love from India