Joystick front and rear directional control||doc136155

September 20, 2022

Format

 GameSettings.poleForward 

Description

The direction control of the joystick forward and backward (>0: forward, <0: backward, =0: still).


Precautions

The mobile ui drag is operated by addition and subtraction, and the size is 1. If the set value is greater than 1, then the player will not be able to move in the opposite direction by dragging the mobile ui


Value Returned

type Description
float Variables that control the movement back and forth


Code Samples

Set the current client player to always move forward

local bm = Blockman.Instance().gameSettings
bm.poleForward = 1
print(bm.poleForward)