logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Character Movement

    Scheduled Pinned Locked Moved
    Help and Support
    2
    2
    161
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Flame Games
      last edited by

      Hi everyone,
      This is my first time attempting a side scroller, so a lot of you may already know the answer to this question. How can I move my character side to side when I press a button, instead of using a joystick?
      Cheers,
      Evolution

      1 Reply Last reply Reply Quote 0
      • Andrey GhostA
        Andrey Ghost
        last edited by Andrey Ghost

        Hello, @Evolution
        I know 2 ways: using velocity and using timers+move by
        1_1503777645715_IMG_0096.PNG
        0_1503777645714_IMG_0095.PNG
        My velocity behaviors had a bug when character stops if you touched 2 buttons at same time and then released only one, but this can be easily fixed with «Behaviors on/off»
        0_1503777687995_IMG_0094.PNG
        Simply timer and move by.. Behaviors on/off required for proper work without any glitches.
        P.S. It's hard to see behavior off connections on this screenshot (sorry, my butterfingers), but it's simple: turn off right timer when character moves left and turn off left timer when character moves right.
        I can send the project by e-mail if ya want.
        Hope this helps! :-)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post