Tile - YLocalPlayer - Get Vertical Input – Ylands
Jump to navigation
Jump to search
(Added page using info from Naru's corner) |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<!--- | |||
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | |||
--> | |||
== Get Vertical Input() == | |||
= | |||
[[File:YlandsTile-939.png]] | |||
<pre>static getPrimaryVerticalInput(): number;</pre> | |||
=== Returns === | |||
=Notes= | '''number''' | ||
* | |||
=== 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. | * 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. | |||
---- | ---- | ||
{{Ylands | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
Latest revision as of 15:27, 24 November 2023
Get Vertical Input()
static getPrimaryVerticalInput(): number;
Returns
number
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.