How To Collect Coins In Unreal Engine 5 Using Blueprints

Поделиться
HTML-код
  • Опубликовано: 10 фев 2025
  • In this video we will learn How To Collect Coins In Unreal Engine 5 Using Blueprints .
    Hello everyone and welcome to my channel . My name is Alireza and I`m a cg artist and a Virtual Reality developer .
    I founded UNREAL ART with the mission to equip you with the knowledge,skills and insights you need to design and create 3D virtual worlds in unreal engine 5 .
    You can use the knowledge in different fields including Game design , VFX , Movies and Animations , Architectural visualization and VR/AR games and applications.
    There will be Unreal Engine 5 tutorials to cover the technical side . We will also talk about the business side of the relevant industries, technology trends , design and art to completely cover all of the elements contributing to the creation of a 3D virtual world .
    If you think this type of content can help you move forward in your career , don`t forget to subscribe and leave a thumbs up, that would mean a lot for the future of this channel . 🙏🥂

Комментарии • 125

  • @BoumaPandaPerso
    @BoumaPandaPerso 3 месяца назад +2

    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  3 месяца назад

      Thank you very much ,I appreciate that!

  • @0SuperStar0
    @0SuperStar0 7 месяцев назад +1

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

    • @UnrealART
      @UnrealART  7 месяцев назад +2

      glad you liked the video!

    • @bigcheesh
      @bigcheesh 5 месяцев назад +1

      Same

  • @lostcinder
    @lostcinder 5 месяцев назад

    you deadass saved my life with this tutorial

    • @UnrealART
      @UnrealART  5 месяцев назад +1

      Haha, you are very welcome! 🥂

  • @YDRHO1111
    @YDRHO1111 6 месяцев назад

    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  6 месяцев назад

      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

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

  • @jjmartin6422
    @jjmartin6422 5 месяцев назад +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  4 месяца назад +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 2 месяца назад

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

  • @jjmartin6422
    @jjmartin6422 5 месяцев назад

    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  4 месяца назад

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

  • @PepitoCreisi
    @PepitoCreisi 11 месяцев назад

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

    • @UnrealART
      @UnrealART  11 месяцев назад

      you are very welcome !

  • @HaikuTutorials
    @HaikuTutorials 6 месяцев назад

    Incredible tutorial. Thank you so much!

    • @UnrealART
      @UnrealART  5 месяцев назад

      Glad you enjoyed it!

  • @arasyar2539
    @arasyar2539 9 месяцев назад

    Perfect 👌🏻

  • @tobiassugar8251
    @tobiassugar8251 Год назад

    This tutorial is awesome

  • @raykenney0562
    @raykenney0562 Год назад

    Great Tutorial Mahnn
    Keep Uploading

  • @abhinavsinha293
    @abhinavsinha293 9 месяцев назад

    thanks, helped me with my project

    • @UnrealART
      @UnrealART  9 месяцев назад

      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 😉

    • @xTriplexS
      @xTriplexS 4 дня назад

      Casting character is okay as long as you do it in beginplay or anywhere that'll do it once and not repeatedly. Character is already loaded into the memory anyway, it won't re-load

  • @annamelarmony1686
    @annamelarmony1686 Год назад

    Thank you so much! You saved my sanity)

    • @UnrealART
      @UnrealART  Год назад +1

      haha, you are very welcome !

  • @ytyy0_0
    @ytyy0_0 Год назад

    thank you! this tutorial helped me

  • @BIGCO0k
    @BIGCO0k Год назад

    Appreciate the great tutorial, works perfect!

  • @SirMadam_
    @SirMadam_ 7 месяцев назад

    helped! thank you

  • @ecevilVFX
    @ecevilVFX 9 месяцев назад

    That was exactly what I needed thank you so much

    • @UnrealART
      @UnrealART  9 месяцев назад

      Glad it helped!

  • @repairtechnician4666
    @repairtechnician4666 Год назад

    Very simple and effective tutorial !

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

    • @xTriplexS
      @xTriplexS 4 дня назад

      If you have more than 5 and want it to dynamically update it, you'll have to use the get actors of class node and count it that way. Be careful not to use it if your level has like more than 200 of that actor though

  • @DerekSeguin
    @DerekSeguin Месяц назад

    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  Месяц назад

      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 Месяц назад

      @@UnrealART You are 100% correct

  • @ZimMabu_GameDev.
    @ZimMabu_GameDev. Год назад

    Merci Dadash

  • @fluidexpressions6856
    @fluidexpressions6856 Год назад

    thank you very much!

  • @anotherreality7951
    @anotherreality7951 10 месяцев назад

    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  10 месяцев назад

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

    • @anotherreality7951
      @anotherreality7951 10 месяцев назад

      @@UnrealART I found it !!!
      ruclips.net/video/qZ664071t-M/видео.html&ab_channel=JorgeUsabiaga

  • @moeindvp2107
    @moeindvp2107 Год назад

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

    • @UnrealART
      @UnrealART  Год назад

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

  • @sonofzues8414
    @sonofzues8414 Год назад

    Thank you very much

  • @Ba8sbaNybRMAcXCNdKnLTA
    @Ba8sbaNybRMAcXCNdKnLTA Год назад

    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  11 месяцев назад

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

    • @Ba8sbaNybRMAcXCNdKnLTA
      @Ba8sbaNybRMAcXCNdKnLTA 11 месяцев назад

      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  11 месяцев назад

      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

  • @reinaldodovallevieira2679
    @reinaldodovallevieira2679 6 месяцев назад

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

    • @UnrealART
      @UnrealART  6 месяцев назад

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

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

  • @alexismaquaire6201
    @alexismaquaire6201 3 месяца назад

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

    • @UnrealART
      @UnrealART  3 месяца назад +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.

  • @LadCorazon
    @LadCorazon 8 месяцев назад

    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  7 месяцев назад

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

  • @solidstatedrive
    @solidstatedrive 3 месяца назад

    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  3 месяца назад

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

    • @xTriplexS
      @xTriplexS 4 дня назад +1

      It will for counting. Because binding a variable does that

    • @xTriplexS
      @xTriplexS 4 дня назад +1

      If you're worried about casting however, it's okay when you're casting your player or the hud, because they're almost always loaded in the memory anyway. But if you dont want to cast, then you can use interface. Declare the function in the interface, implement it to the things that will use it via class settings and define the function where you will use it

    • @solidstatedrive
      @solidstatedrive 4 дня назад

      @xTriplexS appreciate that! I moved it to the character BP so only that ticks on checks for coin collisions vs every coin in the level checking for collision with the player. But I might try this approach too just to add it to the toolbelt

  • @frederickmp451
    @frederickmp451 9 месяцев назад +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  9 месяцев назад

      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

  • @day_dreamer7939
    @day_dreamer7939 11 месяцев назад

    goat

    • @UnrealART
      @UnrealART  11 месяцев назад

      thanks mate !

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

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

  • @lifei2short
    @lifei2short Год назад

    you should make a mini game for that

    • @UnrealART
      @UnrealART  Год назад

      yeah not a bad idea 👌😉

  • @majeedalzaidy1499
    @majeedalzaidy1499 9 месяцев назад

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

    • @UnrealART
      @UnrealART  9 месяцев назад

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

  • @rusyxd3390
    @rusyxd3390 9 месяцев назад

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

    • @UnrealART
      @UnrealART  9 месяцев назад

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

    • @rusyxd3390
      @rusyxd3390 9 месяцев назад

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

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

  • @CrabMan42
    @CrabMan42 9 месяцев назад

    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  9 месяцев назад +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 .

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

  • @thebestchillsounds4780
    @thebestchillsounds4780 10 месяцев назад

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

    • @UnrealART
      @UnrealART  10 месяцев назад

      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.

  • @unrealenginehindi
    @unrealenginehindi 6 месяцев назад

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

    • @UnrealART
      @UnrealART  6 месяцев назад

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

  • @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 Год назад +1

      @@mileshodge3477 how?

    • @memeswiper
      @memeswiper 11 месяцев назад +1

      ​@@mileshodge3477 how did u do it??

    • @mileshodge3477
      @mileshodge3477 11 месяцев назад +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 11 месяцев назад

    irani accent XD

  • @Random_Taurus
    @Random_Taurus Год назад

    Thank you very much