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")
 
(Added page using info from Naru's corner)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Character_input.png]]
* Horizontal input
** Returns -1 if you press A
** Returns +1 if you press D
** Returns 0 if nothing or both are pressed
* Vertical input
** Returns -1 if you press S
** Returns +1 if you press W
** Returns 0 if nothing or both are pressed
=Examples=
Simple example (no turning):
[[Image:Ylands Tile - Character input-Example1.png]]
Complex example from Naru's Corner #10:
[[Image: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.





Revision as of 09:59, 16 December 2020

Ylands Tile - Character input.png

  • Horizontal input
    • Returns -1 if you press A
    • Returns +1 if you press D
    • Returns 0 if nothing or both are pressed
  • Vertical input
    • Returns -1 if you press S
    • Returns +1 if you press 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