How Can I Limit The Number Of Jumps For My Character ?

Discussion in 'How Can I...?' started by Julio666, Dec 27, 2019.

  1. Julio666

    Julio666 Boxer

    Joined:
    Dec 22, 2019
    Messages:
    50
    Likes Received:
    4
    Hello everyone, :)

    How could I limit my character to two jumps maximum when I press the screen, I don't know how to code at all so I would like to have if you can please do the action, each time you press the screen, the character makes a maximum of 2 jumps without coding, thank you in advance for your help. version 3.1.1
     
    Last edited: Dec 27, 2019
  2. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    157
    Likes Received:
    85
    Drag jump node, set jump limit to 2. And connect "reset" input with "If Collide node", which affected asset is platform. So, you can make 2 jumps, and it resets, when touching the ground.
     

    Attached Files:

  3. Julio666

    Julio666 Boxer

    Joined:
    Dec 22, 2019
    Messages:
    50
    Likes Received:
    4
    Thank you very much for helping me. ;)
     

Share This Page