See project files here: bit.ly/ditzelgames See updated video here: kzbin.info/www/bejne/Z6W2pWCQmqqNhKM 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! >:)
@Nnjaaaaaaa6 жыл бұрын
Hi I keep on getting this error and I'm just following what you do "Assets/ThirdPersonInput.cs(26,39): error CS1540: Cannot access protected member `Joystick.inputVector' via a qualifier of type `FixedJoystick'. The qualifier must be of type `ThirdPersonInput' or derived from it"
@tonynealis11656 жыл бұрын
I can't find CS1540 error on internet, so if you still need help, my guess would be that the qualifier has to be thirdpersoninput, or as noted, dervied from it, in other words from the class, I believe so the api used would have to be from that class ( as I understand coding, i'm far from an expert). Hope you got it figured out, as I often ask here, there everywhere and months, days can go by with no answer,,I think engines should do a far better job, and none of them do great, - but then Unity as the others, has paid support, so ---sadly that may be whats going on here--and others have limited time - blah blah. Regardless, sorry your answer went 2 wks with nothing, and I hope my answer steers you in right direction.
@Nnjaaaaaaa6 жыл бұрын
hi @tony nealis thank you for the response, I removed this kind of feature in the game I'm currently developing for out thesis and I think my error was due to the version of my unity. Replaced joystick movement with click to move. I still can't derive codes because I'm still trying to learn about the codes and their different functions but I still thank you for the suggestion.
@user-ug6vd8ud1v6 жыл бұрын
I launch project APK and everything is pink. Why may this happen?
@alfonsotorres23025 жыл бұрын
amigos en la nueva actualizacion del assent (Joystick Pack) para corregir el error se encuentra la variable con input en la clase Joystick.cs => private Vector2 input = Vector2.zero;
@jikkomohammad593 жыл бұрын
Why this guy has only 18.1k subs.... He deserves 1million+ subs
@natalieweishuhn5214 жыл бұрын
All, for those of us in Unity 2019.3 or above, with the inputVector issue, here's how to fix it. 1) ThirdPersonInput section will be "Control.Hinput = LeftJoystick.input.x; Control.Vinput = LeftJoystick.input.y;", NOT inputvector 2) Find the script in the project name “Joystick”. 3) Open the script “Joystick”. 4) Find the string “protected Vector2 input = Vector2.zero” and change that to “public Vector2 input = Vector2.zero”. 5) Save the script.
@caglarkutluyigit32384 жыл бұрын
Thank you
@ramakrishnan.v62084 жыл бұрын
Hey my fixedjoystick script is empty what should I do? Please help
@Abo7moodUnity4 жыл бұрын
@@ramakrishnan.v6208 see the Discription
@Tenenx694 жыл бұрын
TY very much
@satrioopw4 жыл бұрын
oh my god thankyou so much finaly fixed it
@AkaBoy Жыл бұрын
can you please update the project download link
@muhammadahmadyousaf28244 жыл бұрын
this is the BEST tutorial this channel has offered uptill now
@spyder_f3m6oy3 жыл бұрын
Did all controls work for ur project? Pls reply bro
@muhammadahmadyousaf28243 жыл бұрын
@@spyder_f3m6oy yes .
@muhammadahmadyousaf28243 жыл бұрын
@@spyder_f3m6oy youtube didn't notify me that's why i am replying late. if you need help i m willing to offer/share my knowledge
@spyder_f3m6oy3 жыл бұрын
@@muhammadahmadyousaf2824 thats so nice of u 😁😊.btw I've gotten what I needed, Thanks alot👍👍
@spyder_f3m6oy3 жыл бұрын
@@muhammadahmadyousaf2824 oh wow, even u have a game dev Playlist. 👈🤗
@_T-800_6 жыл бұрын
Hi guys! How to fix the error with = FixedJoystick LeftJoystick; error error error…. `Joystick.inputVector'??? 😊))) I'll help you :)). 😊😊😊 So.😊 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! >:) DitzelGames, thank you so much for your work. you're cool!!)
@arkamajhi6 жыл бұрын
This actually works. At least worked for me. For the ones who can't figure out where the joystick file is : Go to assets and type joystick in the search bar, there. You will get the C# file easily. Best of Luck Thank you джерик джери for the help
@shooorov6 жыл бұрын
thanks man
@Nnjaaaaaaa6 жыл бұрын
THANK YOU SO MUCH BRO
@kenethadrianariasperez37156 жыл бұрын
tanks you, "Dios te bendiga" me salvaste la vida....
@CHUMAlv6 жыл бұрын
@@arkamajhi красава долго раздуплиться не мог)))
@privacyplease10044 жыл бұрын
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?"
@harshpatil67824 жыл бұрын
Did u find plz tell me❤️
@nypcsj8094 жыл бұрын
Hi have you found a answer?
@harshpatil67824 жыл бұрын
@@nypcsj809 I found bro
@nypcsj8094 жыл бұрын
@@harshpatil6782 Hi bro can send me the solution?
@nypcsj8094 жыл бұрын
@@harshpatil6782 Can you send me a message on discord - cyberjj999#2733
@Abhishek-tf8bj2 жыл бұрын
This means a lot to me thanks for this tutorial and first person tutorial THANK YOU SO MUCH
@DEVINC8943 жыл бұрын
Fixed joystick does not contain definition for inputvector
@rmzzz763 жыл бұрын
I commend you for this. It's really unacceptable that player controller behavior for touch devices isn't boiler plate and provided direct by Unity through, at minimum an official asset store package... Unity3D does so very little for their developers when it comes to core generic functionality, this is where Unreal Engine destroys them... Such a simple fix on their part, such a pity.
@dhruvsengpta27034 жыл бұрын
AweSome!!!! little bugs with fixed button (monobehaviour) and therewas no inputvector although there was input so it all worked out !! Thanks a ton!!
@arazibrahim74164 жыл бұрын
Thanks bro working ❤️
@alphagames21394 жыл бұрын
If the tag in the camera part is not necessarily the main camera, you will have a problem;).Good Tut. Thanks DitzelGames
@hey_buddy86024 жыл бұрын
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:
@cpcaraho70464 жыл бұрын
How you make running movement my character is jus moving forward and not any movement
@Oxmond4 жыл бұрын
That's what I call a nice third-person controller tutorial! Well done! 👍🤓
@lib48615 жыл бұрын
Thank you for the tutorial, this really helped me to develop my Android game project.
@aryanshanker91693 жыл бұрын
What's the name ?
@alihamzeloo87926 жыл бұрын
Thank you. You rescued me, man. It's working very gooooooooood.
@tobyrobinson95616 жыл бұрын
you just gained a sub. you deserve more
@mahrcheen5 жыл бұрын
I think the creator of Joystick pack changed something in their asset. There is no fixed joystick definition so it screams errors about no leftJoystick.inputVector.x or y available. As i checked Fixed Joystick it is actually empty script that inherits all from Joystick class and nothing more
@raymondkwan26705 жыл бұрын
I face the same problem, do you know how to solve this? Thanks.
@felipeberthier9734 жыл бұрын
@@raymondkwan2670 Hi, the Line 41 in the Joystick.cs needs to be this: public Vector2 input = Vector2.zero; You need to change from private to public so that others scripts can acess that variable. Also in this part of the code: var input = new Vector3(LeftJoystick.input.x, 0, LeftJoystick.input.y); Take note that it's only input now, not inputVector
@satrioopw4 жыл бұрын
can you fix that ?
@carlosgamer43h3 жыл бұрын
@@felipeberthier973 Thanks you man, I really appreciate
@nstcg72713 жыл бұрын
The import didnt created standard asset folder for me
@bgfxc45705 жыл бұрын
I have used the method with the touch camera controll but the camera is constantly moving to the right
@XRDeveloper-016 жыл бұрын
I got error in FixedButton n FixedTouchField
@Realnoooob3 жыл бұрын
Did you find the solution?
@eliciohernandez33153 жыл бұрын
Where is the demo scene? Thanks
@saadanees79894 жыл бұрын
Amazing tutorial man. Thanks!
@anonymousclan43544 жыл бұрын
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
@sudahmalam14 жыл бұрын
THI IS GOLD ,.. thanks PAL
@ShinichiKudoQatnip4 жыл бұрын
I love you for making this tutorial 😭 I finally found this after so many days 😭😭😭 but thank you so much 🤍🤍🤍🤍🤍
@dylanr06625 жыл бұрын
It says Fixed joystick doesn't inclide a definition for inputVector. Please help
i find problem you are need change (inputVector) to (Direction) like fps.RunAxis = MoveJoystick.Direction;
@dylanr06625 жыл бұрын
@@nabilel-hilaly4487 ohhhh! Thxs so much.
@nabilel-hilaly44875 жыл бұрын
@@dylanr0662 you welcome
@NozhikovVlad6 жыл бұрын
Fucking awsome guy
@rektchan54195 жыл бұрын
So I was looking through the code again. And, I went over my older codes if you guys are having problems with the vectors things with the fixed joystick copy paste this into that script. using System.Collections; using System.Collections.Generic; using UnityEngine; public class FixedJoystick : Joystick { internal Vector2 inputVector; }
@Nyyaaan5 жыл бұрын
after that сharacter don't move
@rektchan54195 жыл бұрын
Площадь с фонарём go to your fixed joystick c# code then change the control.Hinput to LeftJoystick.Horizontal; control.Vinput to LeftJoystick.Vertical;
@noumanmobstudios71673 жыл бұрын
Great Work Dear Keep it Up :)
@VidaYReflexión-f2u6 жыл бұрын
*buenos tutoriales me encantan brother saludos desde colombia.*
@DitzelGames6 жыл бұрын
Mi español no es el mejor, pero gracias por su comentario!
@kenethadrianariasperez37156 жыл бұрын
pudiste corregir el error de inputvector?
@VidaYReflexión-f2u6 жыл бұрын
solo tienes que buscar esa variable en el codigo y quitarle protect o private no me acuerdo y colocarle public, y asi sera accesible desde cualquier parte de los otros script
@IndritVaka4 жыл бұрын
Thanks it helps a lot.
@gamedev.guyyyy Жыл бұрын
I am using the Fixed touch zone script and it works great until I press another finger on the screen! when I put another finger on screen the camera position suddenly changing, and after putting of the finger it goes back to the normal position!
@carlgoose256 жыл бұрын
really cool, I like this a lot
@Web-Academic Жыл бұрын
2023 пригодилось, спасибо)
@datdude58864 жыл бұрын
Im getting errors from ThirdPersonInput script. (1,33): error CS0246: The type or namespace name 'MonoBehaviour' could not be found (are you missing a using directive or an assembly reference?) (4,12): error CS0246: The type or namespace name 'FixedJoystick' could not be found (are you missing a using directive or an assembly reference?) (5,12): error CS0246: The type or namespace name 'FixedButton' could not be found (are you missing a using directive or an assembly reference?) (6,12): error CS0246: The type or namespace name 'FixedTouchField' could not be found (are you missing a using directive or an assembly reference?) (7,15): error CS0246: The type or namespace name 'ThirdPersonUserControl' could not be found (are you missing a using directive or an assembly reference?) + additional 13 errors
@ayushkamboj28124 жыл бұрын
contact with voice maybe i can help because i have also been through them
@DEVINC8943 жыл бұрын
@@ayushkamboj2812 same error can you please help me
@tonynealis11656 жыл бұрын
I downloaded same unity you have, placed my older scene that I wanted to keep add onto of course, but when I go to import asset > all I have there is custom . What would cause this,,how do I get all of what you have there ? Character wize, all I have is the engineer, yet you clearly have Ethan which I prefer.. thx
@tonynealis11656 жыл бұрын
I guess it just doesn't show, what you already have installed.
@samadqamar21815 жыл бұрын
Thanks for the tutorial.
@itshardtobreathe99924 жыл бұрын
Hello, When I wrote ThordPersonInput, there were written that "FixedJoystick does not contain a definition for 'inputVector' ". How can I solve this?
@ridaiftikhar43864 жыл бұрын
Instead of 'FixedJoystick.inputVector.x' I used 'FixedJoystick.Horizontal' and it worked for me. Same goes for the y axis, I used 'FixedJoystick.Vertical'
@itshardtobreathe99924 жыл бұрын
@@ridaiftikhar4386 Thanks, I will try to write this.
@gabmanong6948 Жыл бұрын
hi sir, i appreciated the video so much. But i was wondering, where did you get the Standard assets?
@ozdendelibas61673 жыл бұрын
There is right and left in the camera angle, yes, but how do we adjust it to look up and down?
@anvaymishra23624 жыл бұрын
hi guys, if you are getting an error related to "inputVector" just add this line in your FixedJoystick Script - public Vector2 inputVector = Vector2.zero;
@ayushkamboj28124 жыл бұрын
thanks vrooo
@ayushkamboj28124 жыл бұрын
bhai FixedJoystick naam ki file empty hai meri uska code dila do kahi se please
@littlebloodstudio59833 жыл бұрын
thanks bro
@KineticProduction3 жыл бұрын
Assets\Scripts\ThirdPersonInput.cs(30,42): error CS0029: Cannot implicitly convert type 'UnityEngine.Quaternion' to 'UnityEngine.Vector3'
@TheConceptGuy3 жыл бұрын
Nice ! But my joystick seems to go out of the screen when I build its apk. How to make it fit to mobile screen ?
@rohanpednekar80745 жыл бұрын
Thanks for helping :)
@tejaskondgekar55093 жыл бұрын
nice video very helpful
@arkamajhi6 жыл бұрын
How to rotate camera view using another joystick. For suppose if someone wants to look back or sideways while walking forward. Often required in FPS games, PUBG, etc. Can you please make a tutorial for it ?
@DitzelGames6 жыл бұрын
Thanks for your question! Here is the answer: kzbin.info?o=U&video_id=WHlZTv5zBbs
@cpcaraho70464 жыл бұрын
Can you make a character chnge also please
@RaulHdez296 жыл бұрын
Thanks so much!
@dhananjaykulkarni36415 жыл бұрын
The camera goes down everytime to the player's foot even if i have set it up. Please help
@algericotape56544 жыл бұрын
same problem... camera and my character rotating i just followed the step
@yixiao92435 жыл бұрын
thank you so much, you saved my credit!!!!!!!
@anan_dayo5 жыл бұрын
The type or namespace name 'FixedJoystick' could not be found
@cyrasunny38846 жыл бұрын
When I wrote public FixedButton shoot; After compiling showing Are missing an assembly reference
@oscarpirico47625 жыл бұрын
perdón me equivoque, public class FixedJoyStick : Joystick, solución : control.Hinput = LeftJoystick.Horizontal; control.Vinput = LeftJoystick.Vertical;
@julianrockl42285 жыл бұрын
Da real MVP
@rektchan54195 жыл бұрын
New boss lmao
@ConchStreetStories5 жыл бұрын
at 7:20 the inputVector dont work to me, i get an error, it says : 'object' does not contain a definition for 'y' and no accessible extension method 'y' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) how to fix it?
@rektchan54195 жыл бұрын
It just means you have to make a code for the fixedjoystick one to execute.
@tomythomas89964 жыл бұрын
@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
@anaghksatheesh69383 жыл бұрын
Bro please help me I don't know what happened. when I try to add ThirdPersonInput script to player and then it says "The script 'ThirdPersonInput' does not contain a class derived from UnityEngine.MonoBehaviour Everything looks fine but I don't know why unity says this error Plz reply bro
@chauhanbrothers71306 жыл бұрын
thirdpersoninput script m jump m input and v input red colour aara visual studio me
@raghavnautiyal41756 жыл бұрын
i don't think he understands hindi bud :(
@arjayespejo91406 жыл бұрын
Need help! I followed the directions completely. but my controller for player only controls the camera view. my character doesn't move, only the camera. pls help guys...
@tocacute64886 жыл бұрын
Hi, Where can i download the character asset that you used? Thanks
@DitzelGames6 жыл бұрын
It's the character from the standard asset pack of unity
@tocacute64886 жыл бұрын
Can I still use the Third person asset on the updated tutorial? you used cube instead of this character. Thanks in advance.
@noskcornarezano41735 жыл бұрын
Wow! cool tutorial. Can you make another joystick on right side which fire at certain area or make like a top down shooter?
@horror5k5 жыл бұрын
I can't even find the Joystick script, there are 3 of 'em and they all dont have the string...
@mohammedkishore76665 жыл бұрын
can i make this as a multiplayer game ?? is it possible? if its possible ,please make a multiplayer tutorial on this series
@ttttkk23 жыл бұрын
how about looking up and down?
@ulascanozturkmen35115 жыл бұрын
I did everything exactly in the video but at 8:34 i can not move my character pls help
@arsylfpv28485 жыл бұрын
Ulaşcan Öztürkmen did you drag the joystick in the slot?
@chauhanbrothers71306 жыл бұрын
in script writing m jump m input v input how to fix
@Shwetadawar19764 жыл бұрын
How am I going to add shoot button, .... Pls reply !
@asvalias4 жыл бұрын
Where I can get package with Characters? I don't have it
@TinJ74 жыл бұрын
Standard Assets from the Assets Store!
@Billflx5 жыл бұрын
Everything is good, but my camera doesn't follow the player, how to fix it?
@muhammadmubashir18603 жыл бұрын
all animations work fine in unity but only ide animation is working in android device can you plz help?
@vrgames60076 жыл бұрын
Awesome video.
@D4RKH4CKER5 жыл бұрын
I have a question how to fix camera penetration through models (empty inside)?
@furkandogan46755 жыл бұрын
would it work if I used it with fps controller
@MrWick-cc7qb3 жыл бұрын
*_Hey bro I want to change the Camer *_*_ a Angle but they don't workthey show the default camera Angle_*
@umarsohrani93705 жыл бұрын
Subscribed. You earned it. Can you make a tutorial on shooting by the same 3rd person controller, please.
@DitzelGames5 жыл бұрын
Look at my shooting scene series a few weeks ago. Maybe it helps you.
@umarsohrani93705 жыл бұрын
@@DitzelGames Thank you
@khalidaxix3 жыл бұрын
The camera is moving only in horizontal direction. How will it move up and down as well?
@khalidaxix3 жыл бұрын
Kindly help me in this thanks
@ayushkamboj28124 жыл бұрын
Following error came in Thirs person input file Assets\ThirdPersonInput.cs(11,12): error CS0246: The type or namespace name 'FixedTouchField' could not be found (are you missing a using directive or an assembly reference?) please help me as fast as possible
@satrioopw4 жыл бұрын
did you findout ? got same problem too
@Jason-eg2cj4 жыл бұрын
Great video man, how can I make the camera face the front of my scene, it faces the back of the scene anytime I click play
Assets/ThirPersonInput.cs(8,9): error CS0246: The type or namespace name `FixedJoystick' could not be found. Are you missing an assembly reference?
@taimigamedev61415 жыл бұрын
have you solved your issue? if yes then please let me know I am facing the same issue that you fave one year before! waiting for a positive answer.
@manaladkenneth19936 жыл бұрын
how did you set the animation to walk and jump? plsss answer mee hehe
@gaminglife2.0255 жыл бұрын
Can you teach to make car driving game with touch controls for Android or iOS
@theeyeofthesky49744 жыл бұрын
Hi, your controller is pretty smooth and useful, but I have two questions: Firstly, how can I make it so that I can look not only horizontally, but also vertically? Secondly, how can I implement an obstacle detection system for the camera so it doesn't go through an object?
@muhammadahmadyousaf28244 жыл бұрын
dear brother if you find the solution to question 1 do let me know . the answer to your second question lies in this video.... kzbin.info/www/bejne/gGKqmKl6m9J8pZI
@nypcsj8094 жыл бұрын
Hello, how can I look in multiple directions rather than having it only turn left and right like you showed? @DitzelGames
@Siyam_vlog006 жыл бұрын
Everything is great sir I am just facing problem i setting coordinates camera when i play i cant see my character Quaternion.AngleAxis(CameraAngle, Vector3.up) * new Vector3(0,3,4); Can somehow we set it to default coordinates that we have chosen please help
@technoala-eh24035 жыл бұрын
this a great tutorial :)
@bidokwuadin93444 жыл бұрын
What version of unity are u using there is no third person controller in my unity 2018 version
5 жыл бұрын
in my case all code is correct but when i play and rotate it stuck and error (object reference not set to an instance of an object)
@stylegame61995 жыл бұрын
"ThirdPersonInput.cs(10,15): error CS0246: The type or namespace name 'ThirdPersonUserControl' could not be found (are you missing a using directive or an assembly reference?) " Please. Help me
@Naruy905 жыл бұрын
add " using UnityStandardAssets.Characters.ThirdPerson; " in the script
@scribbly95285 жыл бұрын
@@Naruy90 it still doesn't work I have the same error!