Mobile controls like Timberman

How i can make mobile controls like Timberman where if the player click on the right he goes on the right and vice versa? Some hidden buttons? And how i can adapt these buttons for all phones without overlap them?

Hello @Kruger,
I suggest you to watch this tutorial
I hope it will help you.

Thanks,
J

1 Like

I already know that video, but i was figuring out other solutions instead buttons

Try comparing the x position of the cursor or download swipe and gesture extension

In the first option what i should do?
For the second one i want just tap and not swipes, idk if the swipe extension will mess everything

It’s simple
Assuming the width of the screen is 500
In condition if cursor x position is less than 250 and touch started then in action the character will add force 100 at angle 180
In condition if cursor x position is greater than 250 and touch started then in action the character will add force 100 at angle 0

1 Like

That’s cool, thanks for your help