Jumping Left & Right?

Discussion in 'How Can I...?' started by Markoes, Sep 25, 2018.

  1. Markoes

    Markoes Boxer

    Joined:
    Sep 24, 2018
    Messages:
    2
    Likes Received:
    0
    Hello fellow boxers, I just got into game development, cause for me I like the challenge to make something and also I like creating something, It's like a hobby of mine.

    so I was trying to work on something and somehow I can't seem to get the player(character) movement right, well not Like I want it to, I am trying to make my character to jump to the left and to the right when you touch the screen. so it's like a switch effect. so first touch goes right, and when you touch again it will go to the left, and so on.

    I will post screenshot(s) Below this post so you can see what I have now.


    current setup:
    [​IMG]

    Problem with this setup is, as soon I touch the screen, no matter how many times, it keeps jumping to the right. It never switches to the left. any Idea what I did wrong here?

    I got a feeling it's something simple, and I am overthinking it to much.

    Thank you in advance.
    Best regards Mark
     
  2. Markoes

    Markoes Boxer

    Joined:
    Sep 24, 2018
    Messages:
    2
    Likes Received:
    0
    anyone? some help or tip, would be much appreciated.
     
  3. Vishwak Kondapalli

    Vishwak Kondapalli Boxer

    Joined:
    Jan 21, 2020
    Messages:
    1
    Likes Received:
    0
    3 years and no one has answered this? Is there any other thread regarding the same query? I am looking for the same answer. I hope @Markoes had found his way to do it.
     
  4. Thud

    Thud Boxer

    Joined:
    Apr 9, 2019
    Messages:
    99
    Likes Received:
    55
    Try this setup. Turn off "Emit on start" for the switch node. I hope this helps
    upload_2021-5-25_9-19-34.png
    .[​IMG]
     

    Attached Files:

Share This Page