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
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»
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! :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login