Tile - YLocalPlayer - Get Vertical Input – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with " ---- {{Ylands scripting navbox}} {{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}} Category: Instructions Category: Ylands 1.5")
 
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(8 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 ===
'''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 &quot;Player - Directional Movement&quot; within a **Custom Controls ** Game logic.




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 1.5]]

Latest revision as of 15:27, 24 November 2023

Get Vertical Input()

YlandsTile-939.png

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.