Hi, how to achieve this control of character?
Drag to move, Tap to slide and attack to the direction.
Any tutorial is similar?
Thanks for help!
You could easily do it using the excellent behavior MoveTo from rexrainbow : https://www.scirra.com/forum/behavior-moveto_t63156
Develop games in your browser. Powerful, performant & highly capable.
No need for extra plugins. You simply use the Lerp function to get the desired result.
Thank you guys for help!!!
Wenaptic how do i make the character go 1 steady speed. and how would i increase or decrease the speed ?
Thanks for the example!
IanHarlow: Sorry, I do not understand your question. Could you explain better?
Wenaptic: On the code you sent over the dropbox, could you please tell me how i would alter the speed the character comes to the touch point? I was also asking how to i make the player go 1 steady speed. when i touch the screen, the farther away i touch, the faster he moves, and when i touch close to the character he barely moves. I want him to go like a steady speed of 7 pixels whether the touch is close to him, or far away.
Thanks for the help so far!
Excuse the delay. I was busy these days. Here I leave the modified version (which you can change) at a constant speed. This varies with the previous example, because it uses the bullet behavior.