Why is it that when I jump I can keep jumping does anyone have ideas
@StevenFlores-t8t3 күн бұрын
I can't jump :(
@bendux3 күн бұрын
You probably skipped one or two important steps in the tutorial.
@themurraysix20553 күн бұрын
This has been one of the best tutorials I have seen on the New Input System. Thanks. No time at all and I've got movement that can be done with controller or keyboard.
@jacobwherritt4 күн бұрын
Thankyou for the help. The best tutorial for a beginner trying to really understand object pooling.
@user-ve5rr9bp3n5 күн бұрын
hi , can you make a video of the code for a normal platform
@bendux3 күн бұрын
What do you mean?
@AdarshSahu24105 күн бұрын
Please make a tutorial on ledge climb system. Love your videos they are super informative <3
@kevensondraws6 күн бұрын
really good tutorial 👍
@dylandied7 күн бұрын
my player cant jump and im going crazy
@bendux3 күн бұрын
You probably skipped one or two important steps in the tutorial.
@UssrMapping1237 күн бұрын
Someone Help me plz Assets\Scripts\PlayerMovement.cs(3,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'PlayerMovement'
@bendux3 күн бұрын
You probably have another script with the same name in your project.
@indy2l8 күн бұрын
Nice tutorial, had just a couple issues that were really easy to fix (mostly forgetting the ";"). But would be cool to have another way of checking the ground, because since it's detecting the ground using an invisible circle, if your character stands barely on a platform, the circle doesn't see the ground, so you can't jump. I tried using OverlapArea but didn't figure it out ¯\_(ツ)_/¯
@bendux3 күн бұрын
You can adjust the radius of the ground check.
@marco22569 күн бұрын
Love you I'd offer you a kebab if I could
@larryhotdog999 күн бұрын
My player just falls through the floor whenever I play the game. Heres my code: using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using Unity.VisualScripting; using UnityEngine; public class Playermovement : MonoBehaviour { private float horizontal; private float speed = 8f; private float jumpingPower = 16f; private bool isfacingright = true; [SerializeField] private Rigidbody2D rb; [SerializeField] private Transform groundCheck; [SerializeField] private LayerMask groundLayer; // Update is called once per frame void Update() { horizontal = Input.GetAxisRaw("Horizontal"); if (Input.GetButtonDown("Jump") && IsGrounded()) { rb.velocity = new Vector2(rb.velocity.x, jumpingPower); } if (Input.GetButtonUp("Jump") && rb.velocity.y > 0f) { rb.velocity = new Vector2(rb.velocity.x, rb.velocity.y * 0.5f); } } private void FixedUpdate() { rb.velocity = new Vector2(horizontal * speed, rb.velocity.y); } private bool IsGrounded() { return Physics2D.OverlapCircle(groundCheck.position, 0.2f, groundLayer); } }
@bendux9 күн бұрын
If you want two game objects to collide with each other, both game objects require a collider.
@larryhotdog999 күн бұрын
@@bendux okay thx
@ninjafut10079 күн бұрын
teamo
@ItsQuazey11 күн бұрын
I have an error called: Tag: player is not defined Can someone help me?
@bendux9 күн бұрын
Tags in Unity are case-sensitive.
@jellybob99911 күн бұрын
1:58 i use a differant flipping method/ so what do i do?
@bendux9 күн бұрын
It depends on how you flip your player.
@MugStudios202412 күн бұрын
These simple tutorials have been a lifesaver! THANK YOU!
@rohanpani62212 күн бұрын
The || is giving me an error for the private void Flip
@bendux9 күн бұрын
I advise you to compare your script with the source code in the description.
@pandamaen509712 күн бұрын
i love the description of the player sprite
@NoNameQ612 күн бұрын
На рандом кнопки натыкал и думает помог
@Zero-cn6tc13 күн бұрын
Hello the player script didn’t have those extra options how do i get those to appear?
@bendux9 күн бұрын
Make sure that the script is saved and doesn't contain any errors.
@danielrdrigues13 күн бұрын
If the player takes longer to pass through, isn't the collider going to come back and make the player stuck? wouldn't be better a redundancy to check if the player still inside the collider?
@xah556013 күн бұрын
That's so genius, thank you. If not for you, my jump buffering code would remain 20 lines long😭
@th34rc4d3g4m3r15 күн бұрын
is there a way to slow the dash trraveling time ?
@bendux9 күн бұрын
Decrease the dashingTime value at the top of the script.
@azizcanyalcin15 күн бұрын
My dash looks like teleporting. why is that ?
@fallenbored715 күн бұрын
Hey I am Having a problem When I move to left it disappears
@bendux12 күн бұрын
Assign the Sprites-Default material to your player's Sprite Renderer component.
@resourcezander17 күн бұрын
I have a glitch where I can barely jump and when I jump off the edge I slowly very very slowly fall Edit: never mind I’m just dumb
@leonardoespinola188017 күн бұрын
the best tutorial of coyote time i see
@emyexo774217 күн бұрын
I keep getting an error "Non-invocable member 'Vector2' cannot be used like a method." what would anyone suggest?
@bendux9 күн бұрын
I advise you to compare your script with the source code in the description.
@Netroshin17 күн бұрын
Fantastic. Is object pooling good for enable/disable coins to get performance? I believe you can Do this with many objects that are in a game scene dozens of times.
@rragy184818 күн бұрын
These are one of the best videos for 2 d game. Now when it comes to coding its still hard to follow.. , but Unity learn platform is always there if you want to learn something extra.., but overall good content bud! Much appreciated!
@dabrnii785419 күн бұрын
thanks man great video but i have only one issue when i teleport some methods that works before teleportation do not work after i do teleport like grabbing objects can you help me on this one plz
@CodeZhaba19 күн бұрын
Thank you so much!
@MysteriousNN20 күн бұрын
am i the only one who has problem with collide?
@bendux18 күн бұрын
What do you mean?
@Malo565920 күн бұрын
Very good tutorial
@alexanderthegreat481722 күн бұрын
Hi my character sometimes dashes into objects and gets stuck, im using your movement with unity input system tutorial and this dash tutorial, any ideas on whats gone wrong?
@daxmiller267023 күн бұрын
im having a problem if i spam space button when on ground am able to do a double jump how can i fix that
@bendux18 күн бұрын
There is a link to the optimized source code in the description.
@CATaclysmOg24 күн бұрын
I tried your code and the wall slide doesn't work in my case I do not know what could be the issue. Also the wall jump will not apply the horizontal force away from the wall when wall jumping
@armandasaukscionis255822 күн бұрын
by any chance is it only on a wall that is to the right of the character?
@CATaclysmOg22 күн бұрын
@@armandasaukscionis2558 both sides unfortunately
@bendux18 күн бұрын
Create a Physics Material 2D, set the friction to zero, and add it to your player's Rigidbody 2D component.
@CATaclysmOg18 күн бұрын
@@bendux thanks but I already done that
@bendux3 күн бұрын
@@CATaclysmOg I advise you to compare your script with the source code in the description.
@GD-Monkey24 күн бұрын
This is the only tutorial where I get good physics for the player, thanks so much :)
@FIREORICE24 күн бұрын
my character clips through the floor
@bendux18 күн бұрын
If you want two game objects to collide with each other, both game objects require a collider.
@OfficialPlushooterAcc26 күн бұрын
It says isfacingright doesn’t exist ???????
@bendux18 күн бұрын
You probably have a typo somewhere in your script.
@gumball537228 күн бұрын
Idk if this is just me but my character is flying up forever. Is there a fix to this???
@bendux18 күн бұрын
It's hard to tell what's going on without seeing your script.
@SpinDash_Go_215028 күн бұрын
good tutorial but nothing shows up in the script conponent in the player
@bendux18 күн бұрын
Make sure that the script is saved and doesn't contain any errors.
@robertbaoanh516129 күн бұрын
how did he get the rb, groundCheck and groundLayer on the script component? i need help
@bendux18 күн бұрын
Make sure that the script is saved and doesn't contain any errors.
@ignaciovaldes6234Ай бұрын
is there any chance you coudl help me? my code is not marking green the serializefield and it dosent autofill it like in your code, neither do the unity stuff like the Rigibody2d, its like the code is not referencing them, any tips?
Пікірлер
thanks
Why is it that when I jump I can keep jumping does anyone have ideas
I can't jump :(
You probably skipped one or two important steps in the tutorial.
This has been one of the best tutorials I have seen on the New Input System. Thanks. No time at all and I've got movement that can be done with controller or keyboard.
Thankyou for the help. The best tutorial for a beginner trying to really understand object pooling.
hi , can you make a video of the code for a normal platform
What do you mean?
Please make a tutorial on ledge climb system. Love your videos they are super informative <3
really good tutorial 👍
my player cant jump and im going crazy
You probably skipped one or two important steps in the tutorial.
Someone Help me plz Assets\Scripts\PlayerMovement.cs(3,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'PlayerMovement'
You probably have another script with the same name in your project.
Nice tutorial, had just a couple issues that were really easy to fix (mostly forgetting the ";"). But would be cool to have another way of checking the ground, because since it's detecting the ground using an invisible circle, if your character stands barely on a platform, the circle doesn't see the ground, so you can't jump. I tried using OverlapArea but didn't figure it out ¯\_(ツ)_/¯
You can adjust the radius of the ground check.
Love you I'd offer you a kebab if I could
My player just falls through the floor whenever I play the game. Heres my code: using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using Unity.VisualScripting; using UnityEngine; public class Playermovement : MonoBehaviour { private float horizontal; private float speed = 8f; private float jumpingPower = 16f; private bool isfacingright = true; [SerializeField] private Rigidbody2D rb; [SerializeField] private Transform groundCheck; [SerializeField] private LayerMask groundLayer; // Update is called once per frame void Update() { horizontal = Input.GetAxisRaw("Horizontal"); if (Input.GetButtonDown("Jump") && IsGrounded()) { rb.velocity = new Vector2(rb.velocity.x, jumpingPower); } if (Input.GetButtonUp("Jump") && rb.velocity.y > 0f) { rb.velocity = new Vector2(rb.velocity.x, rb.velocity.y * 0.5f); } } private void FixedUpdate() { rb.velocity = new Vector2(horizontal * speed, rb.velocity.y); } private bool IsGrounded() { return Physics2D.OverlapCircle(groundCheck.position, 0.2f, groundLayer); } }
If you want two game objects to collide with each other, both game objects require a collider.
@@bendux okay thx
teamo
I have an error called: Tag: player is not defined Can someone help me?
Tags in Unity are case-sensitive.
1:58 i use a differant flipping method/ so what do i do?
It depends on how you flip your player.
These simple tutorials have been a lifesaver! THANK YOU!
The || is giving me an error for the private void Flip
I advise you to compare your script with the source code in the description.
i love the description of the player sprite
На рандом кнопки натыкал и думает помог
Hello the player script didn’t have those extra options how do i get those to appear?
Make sure that the script is saved and doesn't contain any errors.
If the player takes longer to pass through, isn't the collider going to come back and make the player stuck? wouldn't be better a redundancy to check if the player still inside the collider?
That's so genius, thank you. If not for you, my jump buffering code would remain 20 lines long😭
is there a way to slow the dash trraveling time ?
Decrease the dashingTime value at the top of the script.
My dash looks like teleporting. why is that ?
Hey I am Having a problem When I move to left it disappears
Assign the Sprites-Default material to your player's Sprite Renderer component.
I have a glitch where I can barely jump and when I jump off the edge I slowly very very slowly fall Edit: never mind I’m just dumb
the best tutorial of coyote time i see
I keep getting an error "Non-invocable member 'Vector2' cannot be used like a method." what would anyone suggest?
I advise you to compare your script with the source code in the description.
Fantastic. Is object pooling good for enable/disable coins to get performance? I believe you can Do this with many objects that are in a game scene dozens of times.
These are one of the best videos for 2 d game. Now when it comes to coding its still hard to follow.. , but Unity learn platform is always there if you want to learn something extra.., but overall good content bud! Much appreciated!
thanks man great video but i have only one issue when i teleport some methods that works before teleportation do not work after i do teleport like grabbing objects can you help me on this one plz
Thank you so much!
am i the only one who has problem with collide?
What do you mean?
Very good tutorial
Hi my character sometimes dashes into objects and gets stuck, im using your movement with unity input system tutorial and this dash tutorial, any ideas on whats gone wrong?
im having a problem if i spam space button when on ground am able to do a double jump how can i fix that
There is a link to the optimized source code in the description.
I tried your code and the wall slide doesn't work in my case I do not know what could be the issue. Also the wall jump will not apply the horizontal force away from the wall when wall jumping
by any chance is it only on a wall that is to the right of the character?
@@armandasaukscionis2558 both sides unfortunately
Create a Physics Material 2D, set the friction to zero, and add it to your player's Rigidbody 2D component.
@@bendux thanks but I already done that
@@CATaclysmOg I advise you to compare your script with the source code in the description.
This is the only tutorial where I get good physics for the player, thanks so much :)
my character clips through the floor
If you want two game objects to collide with each other, both game objects require a collider.
It says isfacingright doesn’t exist ???????
You probably have a typo somewhere in your script.
Idk if this is just me but my character is flying up forever. Is there a fix to this???
It's hard to tell what's going on without seeing your script.
good tutorial but nothing shows up in the script conponent in the player
Make sure that the script is saved and doesn't contain any errors.
how did he get the rb, groundCheck and groundLayer on the script component? i need help
Make sure that the script is saved and doesn't contain any errors.
is there any chance you coudl help me? my code is not marking green the serializefield and it dosent autofill it like in your code, neither do the unity stuff like the Rigibody2d, its like the code is not referencing them, any tips?
learn.microsoft.com/en-us/visualstudio/gamedev/unity/get-started/getting-started-with-visual-studio-tools-for-unity
@@bendux thannjk
thank you so much ,without you i would still be stuck in how to move it . you've got a sub
The simplicity is insane, thx
it dosent work becuase i dont havet that gui fake video fake news report
Thank you for this short but helpful video :)
This helped heaps thank you so much