How To Collect Coins In Unreal Engine 5 Using Blueprints

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

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

  • @BoumaPandaPerso
    @BoumaPandaPerso 2 หลายเดือนก่อน +1

    Dude, there are tons of bigger youtubers that can't explain stuff half as good as you do, please keep up the good work and you will get far !

    • @UnrealART
      @UnrealART  2 หลายเดือนก่อน

      Thank you very much ,I appreciate that!

  • @0SuperStar0
    @0SuperStar0 6 หลายเดือนก่อน +1

    I needed a tutorial for an item pickup mechanic and this was perfect!

    • @UnrealART
      @UnrealART  6 หลายเดือนก่อน +2

      glad you liked the video!

    • @bigcheesh
      @bigcheesh 3 หลายเดือนก่อน +1

      Same

  • @lostcinder
    @lostcinder 4 หลายเดือนก่อน

    you deadass saved my life with this tutorial

    • @UnrealART
      @UnrealART  4 หลายเดือนก่อน +1

      Haha, you are very welcome! 🥂

  • @jjmartin6422
    @jjmartin6422 3 หลายเดือนก่อน +2

    8:09 only 1 EventBeginPlay (EBP) node is allowed, so if it's already being used (like for player controls), moving the pin to the widget will unplug it's current connection.
    I was able to connect the EBG to the widget node, widget node to the AddtoViewport node, and then plug that node into the default CastToPlayerController node and everything seems to be working fine.

    • @UnrealART
      @UnrealART  3 หลายเดือนก่อน +2

      glad you found the solution. you can also add your functions to the latest node in your event begin play flow and that would be fine as well.

    • @Migzenho
      @Migzenho หลายเดือนก่อน

      @@UnrealART hey, thanks for the tutorial. one question really quick
      what is EBG cause im having this ebp error and i really want to fix this

  • @FabioCarminati-d8o
    @FabioCarminati-d8o ปีที่แล้ว +1

    thanks, perfect tutorial right when i needed it, luckily i found your video, good job !

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      thanks man , happy to be of help 🥂

  • @YDRHO1111
    @YDRHO1111 5 หลายเดือนก่อน

    This is the tutorial that I want... I really loved the way how you have taught each and every piece of information in detail... Even a kid can understand it very well... Now please make a video on how to save that number of coins that have collected as a high score... As the player restarts or lose the game, the value would be stored and will display in the screen next time...

    • @UnrealART
      @UnrealART  5 หลายเดือนก่อน

      Glad you liked the video 🥂
      In order to make that feature you need to implement a saving system using game instance. I will cover that If I find some time to come up with something. but I am sure you can find a lot of content on this topic on youtube

  • @PepitoCreisi
    @PepitoCreisi 10 หลายเดือนก่อน

    omg thank you so much for this, it was pretty well explained!

    • @UnrealART
      @UnrealART  10 หลายเดือนก่อน

      you are very welcome !

  • @jjmartin6422
    @jjmartin6422 3 หลายเดือนก่อน

    5:20 if you want to have different variations of pickups, with different values (think Sonic rings being 1, and special rings being worth 50 instead of 1. REd coins in Mario being worth 2, and blue coins worth 5, you can promote the second input to the Add node to a variable and name it "____value". Then, in each blueprint class you can custom assing values to each variation/instance of the basic pickup you're counting.

    • @UnrealART
      @UnrealART  3 หลายเดือนก่อน

      Yes that's true. thank you very much for the tip 🥂

  • @HaikuTutorials
    @HaikuTutorials 4 หลายเดือนก่อน

    Incredible tutorial. Thank you so much!

    • @UnrealART
      @UnrealART  4 หลายเดือนก่อน

      Glad you enjoyed it!

  • @DerekSeguin
    @DerekSeguin 24 วันที่ผ่านมา

    Thanks man, quick question, I'm trying to have a projectile hit the coin and add to the same count as when the coin is hit by the character, the very last step is "Get Player Character" but I cannot figure out what to "get" to assign to my projectile which is an actor class, not sure if that makes sense but if anyone can help I'll be grateful!

    • @UnrealART
      @UnrealART  22 วันที่ผ่านมา

      hey mate, you need a little research on blueprint communication and I am sure you will find the solution, you need some proper casting, that's all you need to do

    • @DerekSeguin
      @DerekSeguin 22 วันที่ผ่านมา

      @@UnrealART You are 100% correct

  • @solidstatedrive
    @solidstatedrive 2 หลายเดือนก่อน

    Will this cause every coin to take up tick performance, on every coin in the world? Would it be more lightweight if this logic was rather in the character BP to check if the collision is only with the coin at that moment? So then there are only ticks on the character?

    • @UnrealART
      @UnrealART  2 หลายเดือนก่อน

      yeah I think that's not a bad idea for performance

  • @BIGCO0k
    @BIGCO0k ปีที่แล้ว

    Appreciate the great tutorial, works perfect!

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      You're very welcome!

  • @raykenney0562
    @raykenney0562 ปีที่แล้ว

    Great Tutorial Mahnn
    Keep Uploading

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      Thank you, I will 😉

  • @arasyar2539
    @arasyar2539 8 หลายเดือนก่อน

    Perfect 👌🏻

    • @UnrealART
      @UnrealART  8 หลายเดือนก่อน

      Thanks

  • @repairtechnician4666
    @repairtechnician4666 ปีที่แล้ว

    Very simple and effective tutorial !

  • @tobiassugar8251
    @tobiassugar8251 11 หลายเดือนก่อน

    This tutorial is awesome

    • @UnrealART
      @UnrealART  11 หลายเดือนก่อน

      thanks mate

  • @ytyy0_0
    @ytyy0_0 ปีที่แล้ว

    thank you! this tutorial helped me

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

      You're welcome!

  • @frederickmp451
    @frederickmp451 8 หลายเดือนก่อน +1

    How can I make the currency counter maintain the value when it goes to another level? if I grab 2 coins in the first level, how do I do so that when I go to the other level the counter does not return to zero and continues to maintain the same value?

    • @UnrealART
      @UnrealART  8 หลายเดือนก่อน

      hey, sorry for the late response, well you need to make some saving and loading systems for your variables, there are some tutorials about this topic on youtube I think this is what you need

  • @alexismaquaire6201
    @alexismaquaire6201 2 หลายเดือนก่อน

    How could we do to do like roguelites games, where XP orbs are attracted when players get close?

    • @UnrealART
      @UnrealART  2 หลายเดือนก่อน +1

      It's not that hard, you need to define a big box or sphere collision, then get location of the player on begin overlap and then set the location of the coin based on that. to make the movement smooth and not snappy, you can use a timeline.

  • @abhinavsinha293
    @abhinavsinha293 8 หลายเดือนก่อน

    thanks, helped me with my project

    • @UnrealART
      @UnrealART  8 หลายเดือนก่อน

      Glad it helped!

  • @UnrealByYourself
    @UnrealByYourself ปีที่แล้ว

    Good buddy! I'm sure you already know but for others, try with an event dispatcher or an update function in your Character or Game mode to avoid the Cast each time to save resource. However, you method is simple for new comer.

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

      Thanks for the tips! yeah I try to keep everything simple to prevent people from hating me and unreal ! 😂😂

    • @UnrealByYourself
      @UnrealByYourself ปีที่แล้ว

      @@UnrealART haha. I know exactly what you mean 😉

  • @annamelarmony1686
    @annamelarmony1686 ปีที่แล้ว

    Thank you so much! You saved my sanity)

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

      haha, you are very welcome !

  • @ecevilVFX
    @ecevilVFX 8 หลายเดือนก่อน

    That was exactly what I needed thank you so much

    • @UnrealART
      @UnrealART  7 หลายเดือนก่อน

      Glad it helped!

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

    works Great thanks very much, is there anyway of showing 5 of 5 coins collected and then lets say level complete screen shows?

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

      you are welcome , yes just add a /5 text in front of the coins number and then in the third person character blue print , you need to make a widget and add it to the blue print with the condition of the coins integer equal to 5 .

  • @SirMadam_
    @SirMadam_ 6 หลายเดือนก่อน

    helped! thank you

    • @UnrealART
      @UnrealART  5 หลายเดือนก่อน

      No worries!

  • @I-VisiBomb-I
    @I-VisiBomb-I ปีที่แล้ว

    correct me if im wrong, but i think you can simplify this by using ++ instead of 'add' and 'set' when counting how many coins.

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      yeah that`s true . you can do it that way as well . but I wanted to work with the get and set nodes so it can be a little easier to understand for beginners .

  • @reinaldodovallevieira2679
    @reinaldodovallevieira2679 5 หลายเดือนก่อน

    Great! Can i replace de number count for image? Example: a coin image with a number?

    • @UnrealART
      @UnrealART  5 หลายเดือนก่อน

      yes you can use an image behind your number in the canvas panel

  • @majeedalzaidy1499
    @majeedalzaidy1499 8 หลายเดือนก่อน

    how did you import the sound into the content browser it isn't working for me

    • @UnrealART
      @UnrealART  8 หลายเดือนก่อน

      convert the format into WAV with online converters and then drag it into the content browser.

  • @anotherreality7951
    @anotherreality7951 9 หลายเดือนก่อน

    great tutorial... i love it! is it possible to connect the coin blueprint to PCG? i want 1000 coins randomly placed on top of landscape.

    • @UnrealART
      @UnrealART  9 หลายเดือนก่อน

      thanks mate. Yeah I think it is possible but I haven't done it myself yet

    • @anotherreality7951
      @anotherreality7951 9 หลายเดือนก่อน

      @@UnrealART I found it !!!
      th-cam.com/video/qZ664071t-M/w-d-xo.html&ab_channel=JorgeUsabiaga

  • @Ba8sbaNybRMAcXCNdKnLTA
    @Ba8sbaNybRMAcXCNdKnLTA 10 หลายเดือนก่อน

    Thank you for this tutorial! I have one question: How is it possible to have the coins spawn again in the same location a few minutes after they have been collected?

    • @UnrealART
      @UnrealART  10 หลายเดือนก่อน

      no problem. you just need to get their location and add a spawn node after they are deleted .

    • @Ba8sbaNybRMAcXCNdKnLTA
      @Ba8sbaNybRMAcXCNdKnLTA 10 หลายเดือนก่อน

      Thanks for your reply! I have the spawn node after now, but nothing seems to happen.. Will I need anything after the spawn node?@@UnrealART

    • @UnrealART
      @UnrealART  10 หลายเดือนก่อน

      well I think when we destroy the actor nothing works after, I am going to take a look at this subject and make a video about it . I think it's a good question to cover

  • @endtasid
    @endtasid ปีที่แล้ว

    my player bp says 'BP Tank' does not inherit from 'Character' ( Cast To BP_Tank would always fail). I dont know what i'm doing wrong.

    • @endtasid
      @endtasid ปีที่แล้ว

      that is inside the widget blueprint

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      I don't know I have to look into it to see what is wrong

    • @papi_papillon
      @papi_papillon ปีที่แล้ว

      Are you using a possesed pawn by any chance? I'm not a unreal expert but I had the same issue. When Casting replace "Get Player Character" with "Get Player Pawn". Hope it helps

    • @endtasid
      @endtasid ปีที่แล้ว

      @@papi_papillon thank you I've solved it somehow but unable to remember how.

  • @kareldominicjanes6737
    @kareldominicjanes6737 ปีที่แล้ว

    I can not add Event BeginPlay
    because in my BP_SpriteCharacter (for you thirdperson) i already have an Event BeginPlay

    • @brothersgrimm1230
      @brothersgrimm1230 ปีที่แล้ว

      Same here, did you figure it out?

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

      just connect it to the event begin play that you already have. If it's in use , connect it to the flow you have after the event begin play .

    • @brothersgrimm1230
      @brothersgrimm1230 ปีที่แล้ว

      @@UnrealART I'll try it when I get on my laptop. Thankyou

  • @rusyxd3390
    @rusyxd3390 8 หลายเดือนก่อน

    my On Overlap blueprint does not trigger for sound and destroy. Any fixes?

    • @UnrealART
      @UnrealART  8 หลายเดือนก่อน

      it triggers the other functions and it just doesn't work for sound and destroy?

    • @rusyxd3390
      @rusyxd3390 8 หลายเดือนก่อน

      @@UnrealART It doesnt trigger any functions yet actually. Ive tried on print string afterwards then thats it. Pretty sure the On Component Begin Overlap event is the problem here.

  • @CrabMan42
    @CrabMan42 8 หลายเดือนก่อน

    Hi i am trying make a actor spawn in ounce i collected a certian amount of coins. How do i go about doing that?

    • @UnrealART
      @UnrealART  8 หลายเดือนก่อน +1

      Hey . you need a branch and check if the value of the variable equals for example to 20. If true, the flow should continue and call a spawn actor function .

  • @brothersgrimm1230
    @brothersgrimm1230 ปีที่แล้ว

    Beginplay is already is use for the movement for my third person blueprint. Any idea on a solution?

    • @furkanserdar8725
      @furkanserdar8725 ปีที่แล้ว

      same shit.

    • @brothersgrimm1230
      @brothersgrimm1230 ปีที่แล้ว

      @furkanserdar8725 irritating as hell I even tried zooming in on the video wondering where the movement was on his blueprint 😅

    • @furkanserdar8725
      @furkanserdar8725 ปีที่แล้ว

      @@brothersgrimm1230 bro ı solved, use sequence after beginplay.

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      what is the problem exactly ?? I watched the video again and I have not used event begin play in this mechanic . am I missing something ?

    • @brothersgrimm1230
      @brothersgrimm1230 ปีที่แล้ว

      @UnrealART you used begin play for the counter at the end, but it's already used for the movement so I either have the counter or the movement 😅

  • @fluidexpressions6856
    @fluidexpressions6856 ปีที่แล้ว

    thank you very much!

  • @sonofzues8414
    @sonofzues8414 ปีที่แล้ว

    Thank you very much

  • @moeindvp2107
    @moeindvp2107 ปีที่แล้ว

    عالی... باعث افتخاره...🎉 میدونم ایرانی هستی چون ایرانی ایرانی رو میشناسه:)

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      مخلصیم . لطف داری 🙏🙏🥂🥂

  • @ZimMabu_GameDev.
    @ZimMabu_GameDev. 11 หลายเดือนก่อน

    Merci Dadash

    • @UnrealART
      @UnrealART  11 หลายเดือนก่อน +1

      mokhlesim

  • @ejazahmad9189
    @ejazahmad9189 ปีที่แล้ว

    what if i want to save the number of coins when the level is closed, the game is closed, and when i reopen the game i want the number of coins to be the same

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      well saving the game is a different topic . I am working on a tutorial about how to make a mini game and I will cover that subject in the videos . but for now you can find tutorials about saving and making checkpoints in unreal and I am sure you will be able to find a soulution

  • @day_dreamer7939
    @day_dreamer7939 10 หลายเดือนก่อน

    goat

    • @UnrealART
      @UnrealART  10 หลายเดือนก่อน

      thanks mate !

  • @LadCorazon
    @LadCorazon 7 หลายเดือนก่อน

    Great video, though I do wish tutorials would stop with casting, as it'll never be used in a real world context. Interfaces should be hammered into everyone's mind as the default.

    • @UnrealART
      @UnrealART  6 หลายเดือนก่อน

      for hobbyists and university projects it won't matter a lot but in more serious projects yeah you are right 👍👍

  • @unrealenginehindi
    @unrealenginehindi 5 หลายเดือนก่อน

    how to store coins in game after the game was closed/Quitted??

    • @UnrealART
      @UnrealART  5 หลายเดือนก่อน

      That's a different story, you need to setup a saving and loading system using a game instance

  • @lifei2short
    @lifei2short ปีที่แล้ว

    you should make a mini game for that

    • @UnrealART
      @UnrealART  ปีที่แล้ว

      yeah not a bad idea 👌😉

  • @thebestchillsounds4780
    @thebestchillsounds4780 8 หลายเดือนก่อน

    Another tutorial using casting.. Guys it's terrible due to too much memory allocation.

    • @UnrealART
      @UnrealART  8 หลายเดือนก่อน

      thanks for sharing your opinion mate . I think for small projects like university assignments or projects that are made just for fun, it doesn't matter much but in bigger projects , the point you made is true. So it totally depends on the context.

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

    Doesn't save coins. Player dies resets to 0

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

      yeah saving is a different story

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

      @@UnrealART I found a way to get them to save. At least for the level.

    • @-jarco-353
      @-jarco-353 11 หลายเดือนก่อน +1

      @@mileshodge3477 how?

    • @memeswiper
      @memeswiper 10 หลายเดือนก่อน +1

      ​@@mileshodge3477 how did u do it??

    • @mileshodge3477
      @mileshodge3477 10 หลายเดือนก่อน +2

      @memeswiper I had to store references for point making into the blueprint for third person game mode and call them from there. So if your point making is done in third person blueprint and it keeps getting deleted when you destroy it then it destroys those points so you have to have them being stored else where. Hope that makes sense

  • @kasra0074
    @kasra0074 10 หลายเดือนก่อน

    irani accent XD

    • @UnrealART
      @UnrealART  10 หลายเดือนก่อน

      are dadash

  • @Random_Taurus
    @Random_Taurus ปีที่แล้ว

    Thank you very much