Tile - YLocalPlayer - Get Vertical Input – Ylands
Jump to navigation
Jump to search
- 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
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.