Removing mobile front and back movement

Hello,

I am currently making a 2 dimensional game and I really want it to be playable on mobile devices. To do this, I wanted to disable the front and back movement so you can only move sideways. I have made it work on Laptop/PC but I am still trying to figure out how to disable it on mobile. Any help is appreciated, thanks!

2 Likes

You’d probally wanna make a custom movement system, because you can’t really do that with a joystick. Just having 2 buttons, one being [<] and the other being [>] and scripting them to move using the Tap function (Forgot actual name), and filling the script for moving from the PC.

1 Like

Thanks for the suggestion! I will give it a try.

1 Like

Also, you’d probally want to remove the joystick if you had the buttons; Check it out here

2 Likes

Is there a way to just remove the joystick instead of removing the joystick and the jump button?

Unfortunantly, I don’t think you can remove one or the other, only both. A solid work around would be something as so: image

excuse my sloppy penship I drew it on a mouse

1 Like