Disable forward/backward direction for a 2d game

Hello and welcome to my post :wink:

  1. What do you want to achieve?

i try to disable forward/backward direction for the player

  1. What is the issue?

my issue is it only work with keyboard and i don’t know how i can make this work with other device

Phone/Touch:


Computer/Keyboard:

  1. What solutions have you tried so far?

i try look into the devforum but i don’t find any solution

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

for now i use this line of code for disable the movement forward.

BindAction("SinkForwardMovement", Sink, true, Enum.PlayerActions.CharacterForwardCharacterForward)

but it only make the keyboard disable not all other device like controller/touch/other

You just need to remove the joystick and replace it with two buttons that will move the player humanoid

how i can replace by two button and make the two button move the character ?

//For deleting the joystick
game.StarterPlayer.DevTouchMovementMode = Enum.DevTouchMovementMode.Scriptable

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