- Home /
mobile game touch screen
i created a game, my character can walk, but when i export the game to android, i don't how to make it walk. I used to run the game in laptop and walk it using the keyboard. But when in android i don't know how,i created a game, that character can move like walking. But, when i export to android. I don't how to make the character walk? I run the game in laptop and play using the mouse. But in android, i don't how to change it.
Answer by Z_Y_X · Jul 10, 2020 at 12:10 PM
You can add UI/Button and use them instead of keyboard.
Documentation: https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/script-Button.html
If your game is 2D you can make button using Colliders:
void OnMouseDown()
{
Walk();
}
Your answer
Follow this Question
Related Questions
Help with mobile keyboard 0 Answers
Problems in iOS with TouchScreenKeyboard Types 1 Answer
Problem with mobile input 0 Answers
iOS Numbers and Decimal keyboard 2 Answers
Android 5 Lollipop keyboard problem 0 Answers