Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

2D Platformer Receiving Input on Phone

Discussion in 'Android' started by VFranklin, Sep 16, 2019.

  1. VFranklin

    VFranklin

    Joined:
    Jul 26, 2017
    Posts:
    48
    Hi,

    I have Android set as my desired platform in Unity. I'm making a 2D platformer but am concerned when it comes to user input. When coding for movement, I'm tempted to use the arrow keys but can't transfer that concept to Android.

    I'm thinking of putting up down left right buttons on a canvas to move the player around. Any ideas?
    And I'm curious, what would happen if I set the player's movement to be received from arrow keys then did build and run for Android? How would the phone account for how to move the player?

    Thank you.
     
  2. VFranklin

    VFranklin

    Joined:
    Jul 26, 2017
    Posts:
    48