How to add controls in my game for Touch Screen ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Scavex

Hello friends, I recently made a very short project and it runs fine on Windows. I also exported it to my Android as an apk and it runs fine but the only issue I have is that I use Tab key for firing and arrow keys for movement on Windows. What can be done to add touch controls to my game ?

Is this a design question or an implementation question?

Millard | 2020-06-11 23:26

Implementation ! And I successfully implemented it

Scavex | 2020-06-12 12:41

:bust_in_silhouette: Reply From: xCode Soul

Hello

Use TouchScreenButton and place them in scene

In mobile there keyboard only touch, so you should put the touchscreenbutton to do same functionality

Also you can show touch input buttons only on mobile so your game works on both

Hope that’s helpful

Thank you it worked :slight_smile:

Scavex | 2020-06-12 12:41