Drop Loot Auto Flyback to Player with Unity

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 43

  • @tsuaeghakihas469
    @tsuaeghakihas469 3 ปีที่แล้ว +4

    Really hope you are okay @IndieNugget Hope you come back or at least are doing well where you are! I learned a lot from your videos! Cheers To you wherever you are now!

  • @ryanmontgomery9749
    @ryanmontgomery9749 3 ปีที่แล้ว +4

    For some reason, the loot object is not following my player at all. I don't know why considering my script is exactly the same up until 4:00

    • @theCometPM
      @theCometPM 2 ปีที่แล้ว +1

      Is your animation using the transform position of the Drop Loot instead of the Sphere? That was my issue and it took me longer than I would like to admit to figure that out haha.

  • @selimatasever4112
    @selimatasever4112 3 ปีที่แล้ว +3

    unity changed quite abit since 3 years, do you have a newer tutorial about this subject? Or 2d version Maybe? Cheers!

  • @Adaephonable
    @Adaephonable 6 ปีที่แล้ว +2

    Just found your channel today. Great content! Subscribed.

  • @fernandosilva9679
    @fernandosilva9679 4 ปีที่แล้ว +1

    The dropped prefab doesn't follow the player, follow his last position. help..?

  • @davidhulbert2261
    @davidhulbert2261 2 ปีที่แล้ว

    Works perfectly! Thank you!

  • @lockon1002
    @lockon1002 4 ปีที่แล้ว

    If I want to change it to a letter and go to the top left of the screen, what should I do?

  • @lhorbrum1818
    @lhorbrum1818 6 ปีที่แล้ว +4

    Fantastic, thank you :)

  • @AaditDoshi
    @AaditDoshi 6 ปีที่แล้ว

    Excellent tutorial! you've earned a subscriber!
    A suggestion. The object slowing down and almost stopping near the player feels unsatisfying.
    What Software are you using fro ur text explanation on the video?

    • @IndieNuggets
      @IndieNuggets  6 ปีที่แล้ว

      Hi Aadit
      The object slowing down effect can be replaced by something you like. I’m using the SmoothLerp but you can try maybe other curves like lerp.
      The text explanation is done with photoshop using just brushes.

  • @thewaterleaf7929
    @thewaterleaf7929 6 ปีที่แล้ว +1

    I want to just make a npc drop an item upon dying, but I can`t seem to find any tutorial that shows only that...why? if you could do a video on this subject or tell me something about it, that would be awesome...

    • @IndieNuggets
      @IndieNuggets  6 ปีที่แล้ว +2

      Did you try instantiating your npc drop? Npc drops aren’t any different from this. Just create a prefab that has all the behavior you need on the drop and then instantiate it appropriately. In this vid where I’m instantiating the text just instantiate your drop prefab instead

    • @thewaterleaf7929
      @thewaterleaf7929 6 ปีที่แล้ว +1

      Indie Nuggets thx for help

  • @shubhamshirdhone6557
    @shubhamshirdhone6557 4 ปีที่แล้ว

    when I instantiate my coin it destroys with enemy😭😭
    plz help

  • @mikel2fine
    @mikel2fine 4 ปีที่แล้ว

    I know this tutorial is old but I really need help. The coins go to the position that my player was standing on before the game started. And it dosent follow me. Help please.

    • @mikel2fine
      @mikel2fine 4 ปีที่แล้ว

      One i make the droploot a prefab, the target transform disappears.

  • @dankrogholm9774
    @dankrogholm9774 6 ปีที่แล้ว

    When i add the Additive material my sphere turns completly white no matter what color i choose, did i miss something to make it glow like yours?

    • @IndieNuggets
      @IndieNuggets  6 ปีที่แล้ว

      Hi Dan, It's probably because of either scene lighting or the post processing put on camera. Try putting a post processing profile on you camera and add some "Bloom" to this profile with a low gamma.
      Refer: docs.unity3d.com/Manual/PostProcessing-Bloom.html

    • @dankrogholm9774
      @dankrogholm9774 6 ปีที่แล้ว

      Ive tried everything you mentioned and several other tutorials on lighting, i simply cannot get it working :( any chance you could throw a scene my way so i can check out how it all comes together?

    • @IndieNuggets
      @IndieNuggets  6 ปีที่แล้ว

      I'm using this as my base project. assetstore.unity.com/packages/essentials/tutorial-projects/survival-shooter-tutorial-40756
      After downloading check out the complete game scene and try putting some additive material in it and work your way back. I still think its the bloom post processing though.

  • @Aloisio_PN
    @Aloisio_PN 5 ปีที่แล้ว +1

    Hello
    Indie Nuggets, I'm from Brazil and I don't speak English very well.
    I have a doubt, when I do a prefab, the transform target loses the reference,
    what can I do to solve?
    Gratz for the channel and great content.

    • @IndieNuggets
      @IndieNuggets  5 ปีที่แล้ว

      Hi @ALOISIO PN
      Runtime transforms are not saved in prefabs so you will have to set them when you instantiate the prefab.
      I show this in the video around 4:30.

    • @Aloisio_PN
      @Aloisio_PN 5 ปีที่แล้ว

      Tvm@@IndieNuggets !
      Do you have courses on udemy?

    • @IndieNuggets
      @IndieNuggets  5 ปีที่แล้ว +1

      @ALOISIO Nope not yet. I’m building my own course platform at indienuggets.com but it’s not ready yet. :)

  • @rolddyy7974
    @rolddyy7974 6 ปีที่แล้ว

    Good day. How you add the score when the prefab collides with your character?

    • @IndieNuggets
      @IndieNuggets  6 ปีที่แล้ว +1

      You can keep a reference of the character on the prefab. And when it collided inside the trigger method just add the score to players score.

  • @roxsta9475
    @roxsta9475 6 ปีที่แล้ว +3

    How to do it for 2d games..?

    • @IndieNuggets
      @IndieNuggets  6 ปีที่แล้ว +2

      For 2D you would replace the sphere with a 2D sprite. And then animate it just like we did for 3D. And instead of a sphere collider you would use a circle collider. That’s it

    • @roxsta9475
      @roxsta9475 6 ปีที่แล้ว +2

      Thank you man

  • @funkupgamer5364
    @funkupgamer5364 4 ปีที่แล้ว

    what type of ide or editor you are using..?

    • @IndieNuggets
      @IndieNuggets  4 ปีที่แล้ว

      For the tutorials I use vscode, in the video it’s just a frame to hide all the junk :)

    • @funkupgamer5364
      @funkupgamer5364 4 ปีที่แล้ว

      @@IndieNuggets and how to make the objects glow...i mean i am using post processing an how can i apply the bloom only on a single object,,?

    • @IndieNuggets
      @IndieNuggets  4 ปีที่แล้ว

      Adding additive shader gives that glow effect. I did that around :49 of the video

  • @sarmatkasaev
    @sarmatkasaev 6 ปีที่แล้ว

    which code editor do you use?

  • @Moka-uk8ru
    @Moka-uk8ru 10 หลายเดือนก่อน

    Thank you.

  • @ericcoutinho42
    @ericcoutinho42 6 ปีที่แล้ว +1

    muito bom! Congrats!!

  • @metsuke
    @metsuke 5 ปีที่แล้ว +1

    amazing content!

  • @ibrahemrafee2397
    @ibrahemrafee2397 5 ปีที่แล้ว

    nice video can you please tell me where can i get this project ?

    • @IndieNuggets
      @IndieNuggets  5 ปีที่แล้ว +1

      It’s the Unity 3D survival shooter project.
      Unfortunately it seems this project has been deprecated by Unity.
      You can find some details here
      learn.unity.com/project/survival-shooter-tutorial/?tab=materials

  • @alibicer7439
    @alibicer7439 5 ปีที่แล้ว

    This is very nice game :)

  • @roxsta9475
    @roxsta9475 6 ปีที่แล้ว

    Thank you