Tile - YLocalPlayer - Get Vertical Input – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added page using info from Naru's corner)
m (Added link to Naru's corner (first link to youtube didn't work, but I realized can link it to the forum post))
Line 13: Line 13:




Complex example from Naru's Corner #10:
Complex example from [https://ylands.com/community/topic/29065-narus-corner-10-controlling-a-plane-with-custom-inputs/ Naru's Corner #10]:
[[Image:Ylands Tile - Character input-Example2.png]]
[[Image:Ylands Tile - Character input-Example2.png]]



Revision as of 10:01, 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