Tile - YLocalPlayer - Get Vertical Input – Ylands

From Bohemia Interactive Community
Revision as of 13:24, 16 December 2020 by Ocnog (talk | contribs) (changed to "the player")
Jump to navigation Jump to search

Ylands Tile - Character input.png

  • 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

Simple example (no turning): Ylands Tile - Character input-Example1.png


Complex example from Naru's Corner #10: Ylands Tile - Character input-Example2.png

Notes

  • Only available in single player
  • On a phone, or with a game controller, partial numbers between -1 and 1 are possible.



Template:Ylands scripting navbox