posting this here just in case someone new to unity like myself had the same issue: when coding in visual studio, if it's not recognizing code like "rigidbody" and helping autocomplete, here' s fix: in Unity select Edit>preferences>External Tools> then choose visual studio as the default. start your visual studio page back up and the problem is fixed!
Thank you very much for explaining about new input system and for using it at this project! It was very helpful.I don't think I would have been able to figure this topic out by myself in the near future without your help, thanks
thank you, glad that you show good programming practices, because I am a begginer in unity and only recently I discovered a [SerializeField] attribute, and all other tutorials are skipping such things and use all public variables, and it's just one example, I also keen to learn about underscores in the variables names.
DEFINITELY doing this! I've learned how to make an inventory system but this will definitely help me Advanced into a whole other area for I can add it to my game :3 I hope I dont run into many issues but cant wait to go onto this journey!
for those who need it if the movement is not working try this 1. Verify Setup: Input System: Make sure you’ve installed the Input System package via Window > Package Manager. In Edit > Project Settings > Player, set Active Input Handling to Both or Input System Package (New). Restart Unity.
Why the fufk can't I get this to work. I did this the other day and got it working trying the same now and it just moves on its own and doesn't register inputs.
utilizing this method works, but auto switching of control schemes doesn't seem to be working. If I set default to my gamepad, it works but M+K doesn't and visa versa. setting default to will make only M+K work. Any ideas? Fixed: If you have more than one PlayerInput in the scene it seems to have issues. Not sure if this will be an issue as the project scales.
Hi Ketra! I have a tiny request - can you number the videos in the Tutorial playlist in the order that we should be watching them? I've been through 2 videos before I figured out that the list is in a random order. I figured it out by opening the list and looking a the upload dates. Thanks, love the videos!
there was an error when I added the serialized field it says. Assets\Script\game\player\playermovement.cs(8,6): error CS0246: The type or namespace name 'serializedfield' could not be found (are you missing a using directive or an assembly reference?)
Mine works all the way up to the player input part then it Gives me these errors The type or namespace name 'ImputSystem' does not exist in the namespace 'UnityEngine' The type or namespace name 'ImputValue' could not be found The type or namespace name 'SerializeFeildAttribute' could not be found The type or namespace name'SerializeFeild' could not be found
Hi Ketra, Thanks for this tutorial, you realy explain everything very clearly. I followed your instructions step by step, however, the character don't move and i don't know why.
Hi, while Kinematic Rigidbodies might give you more direct control of the movement, they have limitations when it comes to collisions. The biggest issue is that they don't detect collisions with static objects, so will pass through obstacles.
@Cory Pelizzari As far as I'm aware the 'full contact' option will cause it to trigger the collision events with static objects such as OnCollisionEnter2D but it won't actually stop the movement, so a kinematic Rigidbody will still pass through a static obstacle, unless you stop the movement yourself in OnCollisionEnter2D.
IDK what I'm doing wrong but I just can type 'private' when coding. It just don't show the code. I wasted 3 days already trying to make this thing work and I can't get it :S
Hi, yes, we still plan to continue with the 3d videos. We have a third person shooter series in the works and plans to refresh/continue the 3d platformer series
Hello I'm looking for old game on windows, i remember only graphic is like GTA2 top down, But there is only shooting from cars guns, grenades, bazooka. one map is like Texas on the desert, Story was about Revenge on Gangsters for Brother death, every boss death had scene, last boss look is Long blonde hair mustache and last boss ending: he is half death and was doused in Tequila and set on fire
Hi, we chose URP as we want the series stay current as long as possible, and Unity are trying to phase out the Built In Render Pipeline. Most of the series will work just fine using the Built In though
using System.Collections; using System.Collections.Generic; using UnityEngine; public class playermovment : MonoBehaviour { private Rigidbody2D _rigidbody; private void awake() { _rigidbody = GetComponent(); }
private void FixedUpdate() { _rigidbody.velocity = new Vector2(1, 0.5); }
@@v1ncecuhbutiknowwhereulive402 I'm about as much of a noob as you, but one thing i notcied about your code is you dont have the letter "f" after 0.5 Not sure if that helps.
I haven't been able to understand the new input system at all. This video has made things click. Thank you so much!!!!
posting this here just in case someone new to unity like myself had the same issue: when coding in visual studio, if it's not recognizing code like "rigidbody" and helping autocomplete, here' s fix: in Unity select Edit>preferences>External Tools> then choose visual studio as the default. start your visual studio page back up and the problem is fixed!
Thanks for sharing 😊
Bro it is still not giving me the suggestions and also not helping me in auto completing :(
Thanks so much for this
Thanks Ketra!
I appreciate all your hard work on these tutorials.
Thanks very much for this comment 😊
OMG! I watched older videos and I can't imagine why they were not working, but TY for this!!!!
Nice. I'm glad to used the new input system
👍😊
Thank you very much for explaining about new input system and for using it at this project! It was very helpful.I don't think I would have been able to figure this topic out by myself in the near future without your help, thanks
thank you, glad that you show good programming practices, because I am a begginer in unity and only recently I discovered a [SerializeField] attribute, and all other tutorials are skipping such things and use all public variables, and it's just one example, I also keen to learn about underscores in the variables names.
DEFINITELY doing this! I've learned how to make an inventory system but this will definitely help me Advanced into a whole other area for I can add it to my game :3 I hope I dont run into many issues but cant wait to go onto this journey!
for those who need it if the movement is not working try this 1. Verify Setup:
Input System:
Make sure you’ve installed the Input System package via Window > Package Manager.
In Edit > Project Settings > Player, set Active Input Handling to Both or Input System Package (New).
Restart Unity.
Thank you very much for this tutorial series!
Glad you're finding it useful 😊
Why the fufk can't I get this to work. I did this the other day and got it working trying the same now and it just moves on its own and doesn't register inputs.
great tutorial, others seems to over complicate this part :)
Thanks, great to hear 😊
awsome video sofar
Thanks for this comment 😊
Wow I am very impressed with your didatic skills, I love how you make things easy to understand!!! thanks u deserves the best!!!
Thanks very much for this comment 😊
Ty! Nice tut as always:)
Thanks 👍😊
utilizing this method works, but auto switching of control schemes doesn't seem to be working. If I set default to my gamepad, it works but M+K doesn't and visa versa. setting default to will make only M+K work. Any ideas?
Fixed: If you have more than one PlayerInput in the scene it seems to have issues. Not sure if this will be an issue as the project scales.
Thank God! Thank you for this!
Glad it was helpful 😊
Hi Ketra! I have a tiny request - can you number the videos in the Tutorial playlist in the order that we should be watching them? I've been through 2 videos before I figured out that the list is in a random order. I figured it out by opening the list and looking a the upload dates.
Thanks, love the videos!
there was an error when I added the serialized field
it says. Assets\Script\game\player\playermovement.cs(8,6): error CS0246: The type or namespace name 'serializedfield' could not be found (are you missing a using directive or an assembly reference?)
wait, I know the problem. The problem is just because I added a d in the word serialize
Hey, I cant find 2D URP is it outdated? can i just use 2D Universal?
Mines not even registering MonoBehaviour and various other using functions, have c# installed. What have I done wrong?
void OnMovement(InputValue Move)
{
Movement = Move.Get();
}
doesn't work, what is the issue and how do i fix it?
thankyou so much this helped a lot
Great to hear 😊
is it possible to add a joystick to this for mobile games?
my sprite seems to wobble when going diagnoly any fix?
Hey there! Can I also use 2d mobile instead of 2d URP for this tutorial. I want to make a mobile game. Thanks!
Mine works all the way up to the player input part then it Gives me these errors
The type or namespace name 'ImputSystem' does not exist in the namespace 'UnityEngine'
The type or namespace name 'ImputValue' could not be found
The type or namespace name 'SerializeFeildAttribute' could not be found
The type or namespace name'SerializeFeild' could not be found
Hi, check that you have the new Input System package installed from the Package Manager Window. Hope that helps 😊
@@KetraGames I already have that installed but thank you.
You spelled everything wrong. Input not 'imput'. Field not 'feild'.
Hi Ketra, Thanks for this tutorial, you realy explain everything very clearly. I followed your instructions step by step, however, the character don't move and i don't know why.
hello, i have the same problem. did you find a solution
@@punisher6467 i used a different method to do it
@@francescoderosa1230 can you tell me ?
@@punisher6467
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Controls;
public class PlayerMovement : MonoBehaviour
{
public float _Speed;
public Rigidbody2D _rigidbody;
Vector2 movement;
public Animator animator;
private void start()
{
_rigidbody = GetComponent();
}
private void Update()
{
animator.SetFloat("Horizontal", movement.x);
animator.SetFloat("Vertical", movement.y);
animator.SetFloat("Speed", movement.sqrMagnitude);
movement.x = Input.GetAxisRaw("Horizontal") * _Speed;
movement.y = Input.GetAxisRaw("Vertical") * _Speed;
}
private void FixedUpdate()
{
_rigidbody.MovePosition(_rigidbody.position + movement * _Speed * Time.fixedDeltaTime);
}
}
@@francescoderosa1230
thank you but it didn't work. Still not moving
ok how does your visual studio open that fast i have aged by 5 years waiting on mine
😂
It's all an illusion! We usually have it already opened in the background or we speed it up in the video editing.
Why do a lot of people leave the Rigidbody as Dynamic instead of Kinematic?
Hi, while Kinematic Rigidbodies might give you more direct control of the movement, they have limitations when it comes to collisions. The biggest issue is that they don't detect collisions with static objects, so will pass through obstacles.
@@KetraGames Isn't that what the full kinematic control option is for?
@Cory Pelizzari As far as I'm aware the 'full contact' option will cause it to trigger the collision events with static objects such as OnCollisionEnter2D but it won't actually stop the movement, so a kinematic Rigidbody will still pass through a static obstacle, unless you stop the movement yourself in OnCollisionEnter2D.
@@KetraGames Ah, I see now. Thanks.
IDK what I'm doing wrong but I just can type 'private' when coding. It just don't show the code. I wasted 3 days already trying to make this thing work and I can't get it :S
Is there any plans to update your 3d tutorial vids or make new ones? I like your voice
Hi, yes, we still plan to continue with the 3d videos. We have a third person shooter series in the works and plans to refresh/continue the 3d platformer series
@@KetraGames ok cool. i just made the jump to 3d and im tryna learn the unity engine.
any idea why my variables are showing up in Inspector?
Hi, fields should only show in the Inspector if you've made them public or they have the SerializeField attribute. Hope that helps 😊
You should do a 2d platformer series like Super Mario Bros.
It just says all error complients haveto be fixed
Hello I'm looking for old game on windows, i remember only graphic is like GTA2 top down, But there is only shooting from cars guns, grenades, bazooka. one map is like Texas on the desert, Story was about Revenge on Gangsters for Brother death, every boss death had scene, last boss look is Long blonde hair mustache and last boss ending: he is half death and was doused in Tequila and set on fire
Спасибо! Не без труда, но смог разобраться, и всё получилось как на видео!👍❤
its not working
Why 2D URP?
Hi, we chose URP as we want the series stay current as long as possible, and Unity are trying to phase out the Built In Render Pipeline. Most of the series will work just fine using the Built In though
@@KetraGames thank you
nc watched 4 videos, and alll have different ways to do things
Unity 3d is the best
We like 3D as well, but we'll make sure we cover lots of things in this series that will be applicable to 3D games as well 😊
😈🤘
bruh
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class playermovment : MonoBehaviour
{
private Rigidbody2D _rigidbody;
private void awake()
{
_rigidbody = GetComponent();
}
private void FixedUpdate()
{
_rigidbody.velocity = new Vector2(1, 0.5);
}
}
here is ofing the code
and btw why is it not working?!!!
@@v1ncecuhbutiknowwhereulive402 I'm about as much of a noob as you, but one thing i notcied about your code is you dont have the letter "f" after 0.5
Not sure if that helps.