Tile - YLocalPlayer - Get Vertical Input – Ylands
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Ylands scripting navbox}}" to "{{Ylands editor navbox}}") |
Lou Montana (talk | contribs) m (Text replacement - "{{Ylands editor navbox}}" to "{{Navbox/Ylands}}") |
||
Line 23: | Line 23: | ||
---- | ---- | ||
{{Ylands | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}} | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
[[Category: Ylands 1.5]] | [[Category: Ylands 1.5]] |
Revision as of 06:58, 30 December 2020
- Horizontal input
- Returns -1 if the player presses A
- Returns +1 if the player presses D
- Returns 0 if nothing or both are pressed
- Vertical input
- Returns -1 if the player presses S
- Returns +1 if the player presses W
- Returns 0 if nothing or both are pressed
Examples
Complex example from Naru's Corner #10:
Notes
- Only available in single player
- 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 or using this tile: