How do I make a touchpad for a platformer?

0 favourites
  • 4 posts
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • left and right movement?

    I followed this guide as a experiment.

    https://www.scirra.com/tutorials/1075/m ... y-touchpad

    I tried to make this instead so it will still be a touchpad (joystick--), as I don't want buttons.

    So this is what I thought it would look like but it does not work for me at all, what am I doing wrong?

    I want it to be like "If the touchpad gets pressed on left side, then Hero move left"

    Same with right side.

    ------------------------------

    Also since I have this thread, I have a other question.

    Is there a way to implent "movement floor", I actually don't know the word for it.

    Its where the floor moves to right side so this happens.

      If you stand still -> Your character moves to the right You move to right -> You get boosted movement speed You move to left (against the floor) -> You get lowered movement speed
  • I am currently bumping my post, thank you

  • are you using different layers with parallax less than 100?

    if so, you need to especify which layer you are touching when comparing touch. You do that by adding ("layername") to the touch coordinate. E.g. --> Touch.X("Layer1")

    For your other question:

    Every tick --> Simulate pressing right

    When you stand still --> set player max speed = whatever speed you want

    When you move right + trigger once while true --> set player max speed = Player.8Direction.Speed * 1.2

    When you move left + trigger once while true --> set player max speed = Player.8Direction.Speed * 0.8

    You cant change the multipliers to get higher speed variations

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • are you using different layers with parallax less than 100?

    if so, you need to especify which layer you are touching when comparing touch. You do that by adding ("layername") to the touch coordinate. E.g. --> Touch.X("Layer1")

    For your other question:

    Every tick --> Simulate pressing right

    When you stand still --> set player max speed = whatever speed you want

    When you move right + trigger once while true --> set player max speed = Player.8Direction.Speed * 1.2

    When you move left + trigger once while true --> set player max speed = Player.8Direction.Speed * 0.8

    You cant change the multipliers to get higher speed variations

    Skipping the movement plates for now but got the touchpad to work!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)