best video of this topic, straight to the point, thanks
@jacobachievement4260
Ай бұрын
Love me a simple and effective tutorial
@Luiz-rt8eo
3 ай бұрын
Best tutorial out there, I've managed to make my character move exactly the way I wanted! Cheers!
@adriandestructordemundos777
7 күн бұрын
I just spent 30 minutes to learn this in another video dam
@thyira3599
8 ай бұрын
Finally sth that works , it s easy and fast
@Odisbey
Жыл бұрын
Good guide, but a little slower between switching between the script and unity. Sometimes it's hard to pause it on the part and follow along. Give a 2s pause or so, and it's perfect, TY.
@notrain5455
8 ай бұрын
Clear and on page, thanks my lord
@ariatari2137
16 күн бұрын
ArgumentException: Input Button inventoryAction is not setup. To change the input settings use: Edit -> Settings -> Input PlayerController.Update () (at Assets/PlayerController.cs:46) Line 46 is: if (Input.GetButton("inventoryAction")) { Debug.Log("Eq"); } (Im not using vector2 like you for raw movement data but a simple button check instead)
@JimDunstan
4 ай бұрын
I can't seem to get this to work. I don't get any compile errors, but the player doesn't move, and the debug.log doesn't show that it's getting any of the WASD keys. As far as I can see, I copied the code exactly, and put everything in the right place in the Inspector. Any ideas why it runs but doesn't work? If I did something horribly wrong, I'd figure some sort of error message would show up. Help!
@JimDunstan
4 ай бұрын
Ah. Found it. In the PlayerInput Action you have to be careful in creating a Control Scheme. It works now.
@j_rkd3357
4 ай бұрын
@@JimDunstan hello! I'm getting the same problem you had before with the debug, I'm getting no values despite everything being like the video. How did you manage to fix? it I feel like I've tried everything by now. Your help would be much appreciated! :)
@nubsdre
9 ай бұрын
My savior
@elgariuscartoon6964
Жыл бұрын
Thank you!!!
@vinhnguyen-o5z
28 күн бұрын
is the background music AI generated
@ramG__
27 күн бұрын
No, it's just a free music I found somewhere on the internet.
@BacklogDrifter
Жыл бұрын
You blocked the last bit with the threads video.
@ramG__
Жыл бұрын
Sorry. Just removed it.
@rockstargaming7605
Жыл бұрын
When you wrote: transform.position += new Vector3(direction.x, 0, direction.y) * Time.deltaTime; Why is it not: (direction.x, 0, direction.z) Since you are moving along the x and z axis and not y ?
@auaukiko.oficial
11 ай бұрын
y is the up vector in 3D space. z is forward/backwards. When you read a 2D input it gives you an X and a Y, when tranlating to 3D you have to use the Y as the Z
@mahaadielahi5762
4 ай бұрын
@@auaukiko.oficial Thanks I was also confused
@Rjf32
6 ай бұрын
Didnt work at all
@ramG__
5 ай бұрын
I'm sorry to hear that. Where exactly did you face an issue ? Maybe I could help.
@Rjf32
5 ай бұрын
@@ramG__i got it figured out thx for responding though 🙏
@mareksabol1
5 ай бұрын
@@Rjf32 what was the problem ? I cant make it work aswell
@Rjf32
5 ай бұрын
@@mareksabol1 is it just not working at all or is there an error message?
@shingAMarie
9 ай бұрын
why did unity destroy the input system with this stupid new input system so complicated for no reason
@ramG__
9 ай бұрын
😂. I am a fan of old input system. But the new one is actually much more flexible once you get the hang of it. Especially if your game needs to handle multiple input devices.
@YoutuberUser000
Ай бұрын
1. They didn't destroy anything 2. The new system is way better than the old the old is terrible compared to the new 3. Skill issue
@shingAMarie
Ай бұрын
@@KZitemrUser000 fakin it
@sanjapetrusevska7689
5 ай бұрын
i have an error UnassignedReferenceException: The variable quit of QUIT has not been assigned. You probably need to assign the quit variable of the QUIT script in the inspector. UnityEngine.GameObject.GetComponent[T] () (at :0) QUIT.Start () (at Assets/QUIT.cs:15) can you help ? thank you
@sanjapetrusevska7689
5 ай бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class QUIT : MonoBehaviour { public GameObject quit; private Button quitButton; // Start is called before the first frame update void Start() { quitButton=quit.GetComponent(); } // Update is called once per frame void Update() { if((Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl))&& Input.GetKeyDown(KeyCode.Q)){ quitButton.onClick.Invoke(); } } public void QuitApp(){ #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying=false; #else Application.Quit(); #endif } } This is the code
@ramG__
5 ай бұрын
from the error, it seems like you haven't assigned the gameobject in the inspector. So when it's trying to read the component Button, it's missing the gameobject. Just drag and drop the quit gameobject in the inspector. Hope it solves.
@JuanPablo-h6x
5 ай бұрын
doesnt work help : NullReferenceException: Object reference not set to an instance of an object PlayerController.playermove () (at Assets/Script/PlayerController.cs:30) PlayerController.Update () (at Assets/Script/PlayerController.cs:25)
@ramG__
5 ай бұрын
Make sure the name is spelled correctly inside the FindAction(). Your action name might be different. If it doesn't clear the issue, can you share the code ?
@JuanPablo-h6x
5 ай бұрын
@@ramG__ nvm its working, idk why but the speed didnt let it move, as son as I remover speed it worked, im gessing BC I forgot to put serialized fiedl (dkw) BC When I corrector it started working, I dont know how it works I just know it does
Пікірлер: 35