Character Movement



  • 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



  • 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! :-)


Log in to reply
 

Looks like your connection to hyperPad Forum was lost, please wait while we try to reconnect.