- Home /
How do I make Android Button in-game controls?
I used GUI.RepeatButton for movement via force but I can't use more than one button at a time. What should I use for buttons that can have more than one pressed at a time?
Answer by zharik86 · Mar 25, 2014 at 06:36 PM
You need use multitouch and GUITexture. See example in my pregoing response. And for multitouch you need enable it, for example, in Awake(), as Input.multiTouchEnabled = true;
Okay! Thanks. Will GUITexture allow for different button "phases" like normal/active?
@AnomalousX12 It is interesting as on android to do distinction between two statuses. After all there is no mouse, therefore in fact a visual status one. But if you want that when clicking GUITexture it was clear to the user where it clicked a finger, for example, it is possible to reduce the size of this GUITexture of percent on 10. And when the user takes away from her a finger, to recover the size.
Your answer
Follow this Question
Related Questions
android gui 0 Answers
Android Sliding Controls 0 Answers
Accelometer controls for iOS and android 2 Answers
Android H/w Camera Button 1 Answer
2D platformer controller script. How to jump with touch? 0 Answers