- Home /
Question by
ceylongamedev · Nov 06, 2020 at 07:39 AM ·
android2dmobiletouch controlstop down shooter
How to move player using UI buttons, when using Input.mousePosition to shooting? (Android)
Hello Devs,
Could you explain how work goes with this 2D top-down shooter android? I want to move the player object with 4 buttons (up, down, left, and right) or a joystick. And the user can fire towards the enemy by tapping the ground. I used Input.mousePosition and I can touch over enemy so projectile directly goes to touchpoint. But the problem is whenever I touch over a button to handle movement, it produces a projectile. How can I exclude this button touch for movement?
Comment
Your answer
Follow this Question
Related Questions
Certain assets not working when build game,Certain assets not working when build project 0 Answers
how to shoot with joystick 0 Answers
Wp8 an Android 0 Answers
How to change Unity2D aspect ratio with scenes? 1 Answer
Duplication Problem. Please help. 1 Answer