Adding mobile controls to game

Hi, I have just started out with unity. I want to run the fps micro game on my phone, so I want to implement all the actions to onscreen joystick and buttons. I found the joystick asset, went through all the videos on youtube using this asset, but they are making the project from scratch, but I just need to switch over the controls offered in the microgame to on screen input for mobile. Can anyone guide me how can I achieve it? maybe the steps or any pre-requistes that I must learn.

heres the link to the joystick asset:

heres the link to the fps microgame template:

Please ask something concrete. I’ll probably wouldn’t answer because I don’t do mobile stuff, but your question is vague at the begin with. Tell us what have you tried, where you stuck. Show code/screenshot what do you do and why it isn’t working.

rexrener

ta trouver comment faire car je suis bloquer aussi sur le input mobile de fps microgame ?

Any updates to this, I am also interested. I understand your question and have walked through the same scenario. I have the “FPS Microgame” and the “Joystick Pack”.

Hello, I have tried a lot of joysticks, the joysticks in the store are not very good, but if you must use it, I recommend the “ultimate joystick”
I have not used FPSMICROGame, there is some ideas.

  1. The fps project usually defaults to wasd to control movement. You can open ide, and then search for keywords such as “w” and “move” globally to find the code that controls the movement of the character as a reference.
  2. Then realize the function like control fps player by ijkl, In short, you need to implement the code that controls the movement of the character yourself
    3 The joystick plug-in is usually directly available by dragging it into the scene. What you need to do is to find the event generated by the joystick when a touch occurs.
    4 Finally, you need to write code to register the function of controlling character movement to the joystick event when the game starts