Hi.
I am doing a fps type game. my game will be played on mobile platforms. so I want to add a joystick to the game.
I applied this training, but I did not get the desired result.
https://adventurecreator.org/tutorials/mapping-inputs-screen-joystick
what I want is to go with the joystick and slide the right side of the screen and look around
for example: Pubg mobile, dead trigger 2 call of duty mobile vs vs
For Example: https://imgur.com/a/E1n6MZJ
How can I do that. The control type of my game is fps
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Is there anyone to help?
@ChrisIceBox I have been dealing with this problem for two days. there is no method I have not tried. Please Help Me...
How far did you get with the tutorial? Method 2 looks the closest to what you're aiming for - at least so far as moving goes.
The tutorial is meant for a third-person game, so in yours - set the Movement method to First Person. Then, under "Touch-screen settings", set First-person movement to Custom Input.
This will allow for movement with the "Horizontal" and "Vertical" axes, and free-aiming with the "CursorHorizontal" and "CursorVertical" axes. We then just need to hook these up to a joystick asset. See this wiki page for a script that provides this.
Focus on just getting two joysticks working with it for the moment - the "look" joystick can be made invsibile / restyled later.
Thanks @ChrisIceBox . I put two joysticks first.
Video 1: https://streamable.com/s7hyzd
Then I made one invisible. It works very well now.
Video 2: https://streamable.com/q1cgm5
The joystick sensitivity on the left is excellent. But the sensitivity of the joystick on the right does not work well.
Picture: https://imgur.com/KTJDZRy
I can adjust the walking speed here. Turn speed does not affect the game.
How can I adjust the right joystick sensitivity?
Thank you from now.
In the Settings Manager, under Movement settings, you can adjust the smoothness of free-aiming with the Free-aim acceleration field.
For speed, though, you need to go to the Player's First Person Camera component and adjust the Freelook sensitivity values.
Of course, you can also update the custom script itself to include a factor. For example, with the ACInputSTC script in the wiki, you could replace:
with:
(Where 0.5 is the scale of the speed change)
thanks @ChrisIceBox