Tile - YLocalPlayer - Get Primary Vertical Input – Ylands
Jump to navigation
Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Get Primary Vertical Input() == File:YlandsT...") |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
Line 30: | Line 30: | ||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] |
Latest revision as of 15:27, 24 November 2023
Get Primary Vertical Input()
static getPrimaryVerticalInput(): number;
Returns
number
Availability
Description
Vertical input of the player in a single player game.
Notes
- Returns -1 if the player presses S
- Returns +1 if the player presses W
- Returns 0 if nothing or both are pressed
- On a phone, or with a game controller, partial numbers between -1 and 1 are possible.
- This tile does not automatically prevent player movement. This can be disabled separately by unchecking "Player - Directional Movement" within a **Custom Controls ** Game logic.