How Can I Make My Character Jump With Swipe Up In A Runner Game

Discussion in 'How Can I...?' started by Egehan, Feb 12, 2019.

  1. Egehan

    Egehan Boxer

    Joined:
    Nov 7, 2018
    Messages:
    11
    Likes Received:
    1
    Hello, I've been working to change the controls to the jump mechanic in the runner genre. As default it is done by a character button; when you press it the character jumps however I am trying to implement a swipe up control to make the character jump. Is it possible?

    There are a few things I've tried I will list them below;

    Ghost Jump
    1. Add a swipe control to World UI
    2. Add Ghost Jump to Character settings
    3. Link Ghost Jump with "swipe up" action
    Problem with ghost jump; Character does not actually jumps, it continues to move on the ground.

    Advanced Move

    1. Add a swipe control to World UI
    2. Add Advanced Move
    3. Link Advanced Move to the "Swipe Up" action
    4. Change Y velocity to 30
    5. Set timeout for 0.5
    Problem with advanced move; Character does not need to be on the ground for this action to work
    Basically people can fly around if they swipe up multiple times.

    If you got any solutions regarding that issue I would appreciate that.

    Thank you in advance!
     

Share This Page