Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How can i disable double jump?

Discussion in 'Visual Scripting' started by togaykurtulus, Mar 5, 2021.

  1. togaykurtulus

    togaykurtulus

    Joined:
    Jun 7, 2020
    Posts:
    7
    Hello everybody,
    I made basic unit for the jumping system. I really need a coyote jump time and set it 0.1 sec. But i dont want to player able to double jump. If i pressed jump twice (<coyote jump timer) of course the player can make a double jump. How can handle this issue, if a pressed the second time it can not able to jump for a while (>coyote jump timer).
    Notes: Isgrounded unit is only checking bool and jumping move is only add impulse to y axis.
    Kindly thank for your help . upload_2021-3-5_19-32-15.png


    upload_2021-3-5_19-32-15.png
     
  2. Bassem102

    Bassem102

    Joined:
    Oct 11, 2017
    Posts:
    6
    did you try making a boolean variable check if false before jumping then set it true when jumpig
     
  3. SioLing_

    SioLing_

    Joined:
    Mar 15, 2021
    Posts:
    6
    Character Controller Move - it determines the grounding of the object