Problem trying to control Pac Man on Smartphone (basic version of Pac Man game made in Unity).
I've created a very basic version of Pac Man game, but I'm having trouble creating C# Script to control the Pac Man using my Smartphone. I downloaded a Joystick Pack in the Asset Store, and I created a Canvas for the Joystick, and I attached in the Joystick a Script that I created for control the Pac Man. And then I attached in the character Pac Man another Script that I created. But the only thing I can do is that Pac Man to "walk" to the right and to the left (and when he goes to the left he doesn't turn around, just "walk backwards" like if he are doing a Moonwalk HAHA). I just want that to control the Pac Man using my Smartphone and make he walks exactly like in the original game (UP, DOWN, RIGHT AND LEFT). I'm still very noob in C# language, and I would like you to help me fix the Script so that I can control Pac Man on my Android phone.
This is the link of the project that I made to try to control the Pac Man using my Smartphone:
https://drive.google.com/open?id=14eAW4eujBvvJXnr-rtSuEl9gYb15Ke3H
The 2 Scripts I created, one is attached to the "Fixed Joybutton" that is inside the Canvas (at the end of the project, just above the Event System) and the Script name is "Joybutton". And the other script has the name "MyScript" and is attached to the pacman character. When you select Game and put the resolution in Free Aspect you will see the Joystick and realize the problem.
Please, help me to fix this problem.
Your answer
Follow this Question
Related Questions
how to map joystick for mobile game? 0 Answers
Joystick 3rd Axis problem on Linux 0 Answers
Steam Controller Not Registering as a Joystick 3 Answers
Detecting joystick turn 0 Answers