question

Ineedhelponcodeerrors-1397 avatar image
0 Votes"
Ineedhelponcodeerrors-1397 asked BobJohnson-6874 edited

I have a couple errors that need fixing can someone help me

using UnityEngine; using System.Collection; public class Jump : MonoBehaviour { public float fallMultiplier = 2.5f; public float lowJumpMultiplier = 2f; Rigidbody2D rb; void Awake() { rb = GetComponent<Rigidbody2D>(); } void Update() { if (rb.velocity.y < 0) { rb.velocity += Vector2.up Physics2D.gravity.y (fallMultiplier - 1) Time.deltaTime; } else if (rb.velocity.y > 0 && !Input.GetButton("Jump") { { rb.velocity += Vector2.up Physics2D.gravity.y (lowJumpMultiplier - 1) Time.deltaTime; } } }

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers