Man this tutorial is incredible. You show it and then go through common issues and how to solve them! So often tutorials show a very specific thing and don't leave room for issues like you just did! Bravo!
Awesome tutorial. Please keep em coming! I agree with the guy below me, a ledge climb/grab video would be awesome. And player movements with animations would be great
Great video really nice but why don't the box flips when the player changes his direction Means if player is looking right box should be at right side and visa versa
I was playing around with this and instead of using Gizmos to test the raycast, i tried using Debug.DrawRay(transform.position, new Vector2(transform.localScale.x * distance, 0)); is there any benefit of one over the other?
@@sxm_vd4986 I'm sorry its been a while and I totally forgot.. I think it had something to do with the joints but im not sure. Hope you'll find the fix soon, good luck!
does your character have Box collider and Rigidbody? If yes, check for Rigidbody`s "Body Type" setting and try to change it. Because Kinematic body type makes the object be like transparent for other game objects
Hey man, that's an awsome video and your tutorials are great! But I having a problem on my game, i did everything right, but everytime i press "e" on the box my console show this problem: NullReferenceException: Object reference not set to an instance of an object, I clicked on it and it leads me to this linde of code " box.GetComponent().enabled = false; " afirming that there's a problem in it. Do you know what have I done wrong? Thanks man, Keep it up with the great videos!
Hey, I've come across an issue where the Player/Character flips himself and teleports to the other side of the box when switching between pushing and pulling, any ideas on how to solve this? I've checked the script several times and also checked the Layers and Tags.
Does your player's sprite flip? The gizmo flips connected to Transform component of the player. So moving right, your character might have a scale of (1, 0, 0). Moving left they should have a scale of (-1,0,0). Hope this helps
Hi, Excelent video!!! I have a question!! I want to low the contact line because my player y taller than the box, so the line is upper the box. How can i do that? cheers
You probably dont give a shit but if you are bored like me atm you can stream pretty much all the latest movies on InstaFlixxer. Been streaming with my gf lately :)
Worked for me, I used a friction value of 0.01 for my player and 0.4 for my box, any more and my player gets stuck mid box while jump, due to this: answers.unity.com/questions/264016/rigidbody-stuck-on-wall-when-jumped-against.html
Man this tutorial is incredible. You show it and then go through common issues and how to solve them! So often tutorials show a very specific thing and don't leave room for issues like you just did! Bravo!
Awesome tutorial. Please keep em coming! I agree with the guy below me, a ledge climb/grab video would be awesome. And player movements with animations would be great
I have a problem.
when my character turns to the other side, the gizmo doesn't turn so, I can just grab thing from one side
Hey i Followed your code yet i was unable to push or pull. can you help ?
Good video man still works in 2019 this helped me a lot
Explain me please, I tried to do this, I Follow all the steps but isn't working specialy with the fixedjoint2D
These tutorials are great! Please make more🙌🙌
Great video really nice but why don't the box flips when the player changes his direction
Means if player is looking right box should be at right side and visa versa
thank you so much for this wonderful tutorial this is exactly what i was looking for
Thank you very much for this tutorial, but by some reason, my RayCast doesn't flip along the player. How do I solve this problem?
Very helpful! Could you also do ledge climbing and grabbing?? And rework players movements with animations?
I was playing around with this and instead of using Gizmos to test the raycast, i tried using
Debug.DrawRay(transform.position, new Vector2(transform.localScale.x * distance, 0));
is there any benefit of one over the other?
Not that I know off
all works as it should , but my line position is at the bottom of the player , how can i move it up ?
i have the same problem, do you know how to fix it?
@@shonaaaaa I have the same issue, did you manage to fix it?
@@sxm_vd4986 I'm sorry its been a while and I totally forgot.. I think it had something to do with the joints but im not sure. Hope you'll find the fix soon, good luck!
@@shonaaaaa it's all good no worries! I'll be sure to check that and see if I can sort it out, thank you!
For some reason my character goes through the object when I press E. I have assigned the tag properly and the code is exactly the same.
does your character have Box collider and Rigidbody? If yes, check for Rigidbody`s "Body Type" setting and try to change it. Because Kinematic body type makes the object be like transparent for other game objects
What does it mean box = hit.collider.gameObject; ?
Great video!!! Could you teach me how to do the same procedure, though, in a 3d game?
hey did you find anything about this in 3d ?
@@Aboqamel :) ?
Nice Tutoiral but im wondering how i can only push and pull 1 box
Hey man, that's an awsome video and your tutorials are great! But I having a problem on my game, i did everything right, but everytime i press "e" on the box my console show this problem: NullReferenceException: Object reference not set to an instance of an object, I clicked on it and it leads me to this linde of code " box.GetComponent().enabled = false; " afirming that there's a problem in it. Do you know what have I done wrong? Thanks man, Keep it up with the great videos!
Marcelo Escrobot have you added a fixed joint 2D to your box?
I did, but for some reason he doesn't read it
Might be to late but you most likely didnt Tag the Box to be Pushable
Same problem
Did you accidentally add layer instead of tag?
Hey, I've come across an issue where the Player/Character flips himself and teleports to the other side of the box when switching between pushing and pulling, any ideas on how to solve this? I've checked the script several times and also checked the Layers and Tags.
Or it's more like the Character is flipping both himself and the box but the Character switch places with the box.
Thanks keep it going bro
HorizonteLOL Você por aqui, wtf kkk, ainda tenta desenvolver jogos ?
My gizmo doesnt flip when I move my player to the left, can anybody help me with this?
Does your player's sprite flip? The gizmo flips connected to Transform component of the player. So moving right, your character might have a scale of (1, 0, 0). Moving left they should have a scale of (-1,0,0). Hope this helps
@@lukes4597 The scale of my sprite doesn't change.
I was able to fix it by changing my player controller script.
Hi, Excelent video!!! I have a question!!
I want to low the contact line because my player y taller than the box, so the line is upper the box. How can i do that?
cheers
You probably dont give a shit but if you are bored like me atm you can stream pretty much all the latest movies on InstaFlixxer. Been streaming with my gf lately :)
@Lorenzo Anthony Yea, been watching on instaflixxer for since november myself :)
@Lorenzo Anthony Yup, been using InstaFlixxer for since november myself :D
My line position is at the bottom of the character, does anyone know how to move it up?
change the center point of your sprite to be at the center
@@kitty9140 lmao thanks for the reply, I eventually sorted it out
Worked for me, I used a friction value of 0.01 for my player and 0.4 for my box, any more and my player gets stuck mid box while jump, due to this: answers.unity.com/questions/264016/rigidbody-stuck-on-wall-when-jumped-against.html
fake video!!!!!!!!!!!!!!!1