Pull and Push Block - Unity Tutorial

Поділитися
Вставка
  • Опубліковано 29 жов 2024

КОМЕНТАРІ • 51

  • @adrieldavila9006
    @adrieldavila9006 2 роки тому +1

    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!

  • @dointoomuchsometimes
    @dointoomuchsometimes 8 років тому

    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

  • @zukipmnow4445
    @zukipmnow4445 4 роки тому +2

    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

  • @makarovkavarov3229
    @makarovkavarov3229 4 роки тому +3

    Hey i Followed your code yet i was unable to push or pull. can you help ?

  • @rokkosir100
    @rokkosir100 5 років тому +1

    Good video man still works in 2019 this helped me a lot

    • @wanderwaffles3113
      @wanderwaffles3113 5 років тому

      Explain me please, I tried to do this, I Follow all the steps but isn't working specialy with the fixedjoint2D

  • @MabsMakes
    @MabsMakes 5 років тому

    These tutorials are great! Please make more🙌🙌

  • @sarveshchavan4391
    @sarveshchavan4391 6 років тому +2

    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

  • @creativeworks98
    @creativeworks98 7 років тому

    thank you so much for this wonderful tutorial this is exactly what i was looking for

  • @fernandodasilva-producoesa1023
    @fernandodasilva-producoesa1023 3 роки тому

    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?

  • @MrHillyCraft
    @MrHillyCraft 8 років тому +2

    Very helpful! Could you also do ledge climbing and grabbing?? And rework players movements with animations?

  • @wr41thx29
    @wr41thx29 7 років тому +1

    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?

  • @Aboqamel
    @Aboqamel 6 років тому +2

    all works as it should , but my line position is at the bottom of the player , how can i move it up ?

    • @shonaaaaa
      @shonaaaaa 4 роки тому

      i have the same problem, do you know how to fix it?

    • @sxm_vd4986
      @sxm_vd4986 3 роки тому

      @@shonaaaaa I have the same issue, did you manage to fix it?

    • @shonaaaaa
      @shonaaaaa 3 роки тому

      @@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!

    • @sxm_vd4986
      @sxm_vd4986 3 роки тому +1

      @@shonaaaaa it's all good no worries! I'll be sure to check that and see if I can sort it out, thank you!

  • @sifsif2725
    @sifsif2725 4 роки тому +1

    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.

    • @goodgamershow6505
      @goodgamershow6505 3 роки тому

      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

  • @losfouad2014
    @losfouad2014 4 роки тому

    What does it mean box = hit.collider.gameObject; ?

  • @XTheBrazilianGamerX
    @XTheBrazilianGamerX 7 років тому +5

    Great video!!! Could you teach me how to do the same procedure, though, in a 3d game?

    • @Aboqamel
      @Aboqamel 6 років тому

      hey did you find anything about this in 3d ?

    • @isabela9538
      @isabela9538 5 років тому

      @@Aboqamel :) ?

  • @endernite8115
    @endernite8115 2 роки тому

    Nice Tutoiral but im wondering how i can only push and pull 1 box

  • @MarceloEscrobot
    @MarceloEscrobot 8 років тому +4

    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!

    • @WabbleUnityTutorials
      @WabbleUnityTutorials  8 років тому

      Marcelo Escrobot have you added a fixed joint 2D to your box?

    • @MarceloEscrobot
      @MarceloEscrobot 8 років тому

      I did, but for some reason he doesn't read it

    • @yeahright3630
      @yeahright3630 7 років тому

      Might be to late but you most likely didnt Tag the Box to be Pushable

    • @sangwildford8501
      @sangwildford8501 7 років тому

      Same problem

    • @VilleJaako
      @VilleJaako 7 років тому

      Did you accidentally add layer instead of tag?

  • @Simon-vc7rv
    @Simon-vc7rv 7 років тому

    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.

    • @Simon-vc7rv
      @Simon-vc7rv 7 років тому

      Or it's more like the Character is flipping both himself and the box but the Character switch places with the box.

  • @HorizonteLOL
    @HorizonteLOL 8 років тому +2

    Thanks keep it going bro

    • @wignermatos6616
      @wignermatos6616 6 років тому

      HorizonteLOL Você por aqui, wtf kkk, ainda tenta desenvolver jogos ?

  • @shonaaaaa
    @shonaaaaa 4 роки тому +1

    My gizmo doesnt flip when I move my player to the left, can anybody help me with this?

    • @lukes4597
      @lukes4597 4 роки тому

      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

    • @1Angelainwonderland
      @1Angelainwonderland 4 роки тому

      @@lukes4597 The scale of my sprite doesn't change.

    • @1Angelainwonderland
      @1Angelainwonderland 4 роки тому

      I was able to fix it by changing my player controller script.

  • @nicolasmanay4091
    @nicolasmanay4091 8 років тому +2

    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

    • @lorenzoanthony6807
      @lorenzoanthony6807 3 роки тому

      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 :)

    • @bowenjake3046
      @bowenjake3046 3 роки тому

      @Lorenzo Anthony Yea, been watching on instaflixxer for since november myself :)

    • @londonnoel7336
      @londonnoel7336 3 роки тому

      @Lorenzo Anthony Yup, been using InstaFlixxer for since november myself :D

  • @sxm_vd4986
    @sxm_vd4986 3 роки тому

    My line position is at the bottom of the character, does anyone know how to move it up?

    • @kitty9140
      @kitty9140 2 роки тому

      change the center point of your sprite to be at the center

    • @chickentricep129
      @chickentricep129 2 роки тому

      @@kitty9140 lmao thanks for the reply, I eventually sorted it out

  • @Ashok2048
    @Ashok2048 3 роки тому

    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

  • @tejaskutal2922
    @tejaskutal2922 3 роки тому +1

    fake video!!!!!!!!!!!!!!!1