How can I stop mobile players from walking forwards/backwards?

Simple question, title says it all

I’m working on something and I want players to not be able to go forwards/backwards, because it’s a 2D stage, I got it working for pc, but mobile players can still do it, any solution?

h e l p

From another post I saw, you have to make a custom movement system. The way they did it was just adding left and right buttons to move the player instead of the joystick type thing. You also have to remove the joystick using TouchControlsEnabled I think. But because I haven’t used mobile I don’t know exactly how to do this or if the TouchControlsEnabled would help or not.

you should be able to go into the default movement code in the character during runtime and paste it into startercharacterscripts with modifications. just remove the up/down vector of the joystick basically

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.