Drop Loot Auto Flyback to Player with Unity

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

КОМЕНТАРІ • 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.

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

    Just found your channel today. Great content! Subscribed.

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

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

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

  • @davidhulbert2261
    @davidhulbert2261 Рік тому

    Works perfectly! 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.

  • @lhorbrum1818
    @lhorbrum1818 6 років тому +4

    Fantastic, thank you :)

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

  • @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. :)

  • @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?

  • @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.

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

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

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

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

    amazing content!

  • @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.

  • @ericcoutinho42
    @ericcoutinho42 6 років тому +1

    muito bom! Congrats!!

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

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

    • @IndieNuggets
      @IndieNuggets  5 років тому +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.

  • @Moka-uk8ru
    @Moka-uk8ru 8 місяців тому

    Thank you.

  • @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?

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

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

    • @IndieNuggets
      @IndieNuggets  4 роки тому +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