[Coco2d-x] How to allow player to jump left and right using touch event?

  • dash9231
    Likes 0

    Problem Description

    Hi guys, I’m creating a platformer game and currently, the player can only jump to the right by default. Does anyone have any idea on how to allow the player to jump to the left too? Link to the code can be found here: http://www.mediafire.com/download/4j5xor2yjg7jv11/Platformer_example.rar .  Thanks in advance!

  • Sonar Systems admin
    Likes 0

    Is it the animation your having difficulties with or the physical movement of the character?


    This reply has been verified.
  • dash9231
    Likes 0

    The physical jumping of the character


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    Could you post the code that makes the player jump currently.

Login to reply