Hi guys i m trying to create a jump which looks snappy. Right now i am using a simple jump script which seems to do its job but is not fun as its very slow and floaty… i am trying to achieve a jump like this
(just push the up button on webpage to make character jump)
my game is a doodle jump like platformer in which player automatically jumps when it hits the platform. Here is my script
"
using UnityEngine;
using System.Collections;
public class Jump : MonoBehaviour
{
public float speed = 3.0f;
public float jumpPower = 500.0f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update ()
{
Vector3 x = Input.GetAxis(“Horizontal”) * transform.right * Time.deltaTime * speed;
transform.Translate(x);
}
The inspector for that script will have a field labeled “Jump Power”. Change that value until the jump feels like you want it to. The other things that will affect it are the fields on the Rigidbody of the character (Mass, Drag, etc).
thanks for replying, but i have already tried what you are saying. It only changes height of the jump. I tried diffrent combinations of jumpspeed, gravity and drag, but the jump behaves same way, like a bouncy ball. I am not looking for a realistic jump. checkout the link that i have posted in my question. i want a jump like that.
it does the same thing, changing mass only changes the height of the jump, not its behavior. The thing is, i dont want to change the jump height, i just want to increase the jumping speed by atleast 1.5x or even 2x