This time I will show how to implement a thirdperson controller with touch gestures. If you want to make a third person shooter for mobile devices, then this video could be helpful to find a start how to implement your game logic. I will show you three methods: AutoLook &JoystickLook, TouchLook.
I tried to keep this video as short and simple as possible.
Fixed Button / Fixed Touchpad:
Joystick Pack:
The script I wrote:
Full Tutorial Series:
Part 1: (current)
Part 2:
Part 3:
Nguồn: https://infernalaffairsguild.com/
Xem thêm bài viết khác: https://infernalaffairsguild.com/game/
Xem thêm Bài Viết:
Article Categories:
Game
See project files here: http://bit.ly/ditzelgames
See updated video here: https://www.youtube.com/watch?v=1tSt-ZeEZNA
Fix the error "inputVector":
1) Find the script in the project name “Joystick”.
2) open the script “Joystick”.
3) find the string “protected Vector2 inputVector = Vector2.zero” and change that to “public Vector2 inputVector = Vector2.zero”.
4) save the script “Joystick”. That is all 😊 good luck! >:)
where did u download the character?
Please Add Camera Collision, Thanks
@DitzelGames .Hi , I have this error object does not contain a definición for x and no acessible extensión method x accepting a girar argument if type object could be found . Help please
What a mess…nothing work here
Thank you!!
Fixed Joystick script is empty. How to resolve this.
Thank you
okay i love you! it works perfectly, my only question would be " how do i write a line so the touchfield will move the camera up and down and not only left right?"
hey i do it all thing exact you do that and i have no errors but i dont know why i cant move with joystick
U r legend
Why do most game dev youtubers have brackey’s accent?😂
THI IS GOLD ,.. thanks PAL
Whenever i stop moving right joystick camera postition is go to normal (default) help !
It seems this is only valid in single play games. How can i use FixedTouchField without allocation in multiplay games?
Control.m_Jump = Button.Pressed;
Control.Hinput = LeftJoystick.inputVector.x;
Control.Vinput = LeftJoystick.inputVector.y;
x&y bulamıyor
having this error and dont know what to do any one can help please?
..'FixedJoystick' does not contain a definition for 'inputVector' and no accessible extension method 'inputVector' accepting a first argument of type 'FixedJoystick' could be found (are you missing a using directive or an assembly reference?)
Hello, When I wrote ThordPersonInput, there were written that "FixedJoystick does not contain a definition for 'inputVector' ". How can I solve this?
NullReferenceException: Object reference not set to an instance of an object
ThirdPersonInput.Update () (at Assets/ThirdPersonInput.cs:34)
It's 2019.3.14v engine. and this error occurs about Camera transform and rotation.
How can i fix it?
I am unable to add my fixed button script to my handle PLS HELPPPPPPPPPPP!!!!!!!
hi, can i use the entire touch as a controller, without using a joystick'? can yo tell me how can i do it?
InputVector error is fixed by replacing inputVector by input in thridpersoncont. Script
Does it include with camera collision?
I love you for making this tutorial 😭
I finally found this after so many days 😭😭😭
but thank you so much 🤍🤍🤍🤍🤍
I don't have a fixedbutton
YOU ARE THE GOAT!
i followed the tutorial but. character is not moving any where
where can i find the ThridPersonUserController script ?
It would be cool if it would use your own made character with its animation then teach us how to add a mobile input controller then it would move and animate your character
can someone help me touch Filed is not working i am not getting any errors but not able to move the camera.
Hello bro i follow you Azerbaijan ),Bro Pls Send me This Files whatsap or Gmail whatsap +994 051 621 89 02 : Gmail museyibli.ruhin@gmail.com
Amazing tutorial man. Thanks!
Thanks it helps a lot.
That's what I call a nice third-person controller tutorial! Well done! 👍🤓
best tut ever !!
can i use the joystick in my game and publish it?
Oi sou Br e acompanho seu canal, tenho muitas dificudades porque não domino o ingles, mas conseigo aprender algumas coisas
I can use Camera Collision with ThridPersonInput or touch-field?
AweSome!!!! little bugs with fixed button (monobehaviour) and therewas no inputvector although there was input so it all worked out !! Thanks a ton!!
Hello. How to make the character slightly to the left side of the centre of the camera view ? THANK YOU
Sorry, where can I download this project, I can't make it myself)
im sorry this is just bad tutorial. yoou not explain clearly and im very confuse to get the code. but thank you
In 2020, if u used the same package, when you changed inputVector, it is not protected Vector2 … but it is private.. so just change the private by the public.. and don t write inputVector, but input in ThirdPersonControl…
@DitzelGames, nice work, you are the best :thumbsup:
how to make the player run like where….?
i am facing this issue can you please help me, how may I resolve this issue?
Assets/ThirPersonInput.cs(8,9): error CS0246: The type or namespace name `FixedJoystick' could not be found. Are you missing an assembly reference?
Can you post the link of project
PLEASE HEEEELP ;( I used the touch field option for making my game. But the third person camera only turns around the player along the horizontal axis. So you basically can't look up/down at all while playing the game, only sideways. HOW CAN I ENABLE THE CAMERA TO MOVE FREELY ON THE VERTICAL AXIS TOO SO THAT I CAN LOOK UP/DOWN ? Can anybody help me with this ;(((