D
D
Denis Chirik2020-02-24 14:58:58
2D
Denis Chirik, 2020-02-24 14:58:58

On-screen button control for Android, 2D platformer, how to do?

Looking for a guy. I'm new to this business, and I'm also doing a 2d platformer, and I ran into a control problem on Android devices.
Put on the true path, tell me the logic of connecting the Button to the control (left, right, jump).
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2020-02-24
@Steos_live

The easiest way is to use the standard input system .
But it can also be buttons in the interface, it can be a fingerprint scanner, you can simply download a ready-made controller from the assets store.
If buttons, then as always: bind actions to events through the menu in the editor (or script).
If the scanner, then listen to touch events and check the conditions (if in the lower left corner, then jump).

D
DanielMcRon, 2020-02-24
@DanielMcRon

https://forum.unity.com/threads/upravlenie-na-knop...
I won't throw too much, you can find it in Google in a minute. There are a ton of videos on this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question