How To Collect Coins In Unreal Engine 5 Using Blueprints
ฝัง
- เผยแพร่เมื่อ 6 ก.ย. 2024
- 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 . 🙏🥂
you deadass saved my life with this tutorial
Haha, you are very welcome! 🥂
Incredible tutorial. Thank you so much!
Glad you enjoyed it!
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...
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
I needed a tutorial for an item pickup mechanic and this was perfect!
glad you liked the video!
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?
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
thanks, perfect tutorial right when i needed it, luckily i found your video, good job !
thanks man , happy to be of help 🥂
Great! Can i replace de number count for image? Example: a coin image with a number?
yes you can use an image behind your number in the canvas panel
works Great thanks very much, is there anyway of showing 5 of 5 coins collected and then lets say level complete screen shows?
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 .
helped! thank you
No worries!
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.
Thanks for the tips! yeah I try to keep everything simple to prevent people from hating me and unreal ! 😂😂
@@UnrealART haha. I know exactly what you mean 😉
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.
for hobbyists and university projects it won't matter a lot but in more serious projects yeah you are right 👍👍
omg thank you so much for this, it was pretty well explained!
you are very welcome !
correct me if im wrong, but i think you can simplify this by using ++ instead of 'add' and 'set' when counting how many coins.
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 .
Very simple and effective tutorial !
🥂🙏
thanks, helped me with my project
Glad it helped!
Perfect 👌🏻
Thanks
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.
thanks mate. Yeah I think it is possible but I haven't done it myself yet
@@UnrealART I found it !!!
th-cam.com/video/qZ664071t-M/w-d-xo.html&ab_channel=JorgeUsabiaga
Appreciate the great tutorial, works perfect!
You're very welcome!
This tutorial is awesome
thanks mate
Great Tutorial Mahnn
Keep Uploading
Thank you, I will 😉
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?
no problem. you just need to get their location and add a spawn node after they are deleted .
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
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
thank you! this tutorial helped me
You're welcome!
how did you import the sound into the content browser it isn't working for me
convert the format into WAV with online converters and then drag it into the content browser.
Thank you so much! You saved my sanity)
haha, you are very welcome !
my On Overlap blueprint does not trigger for sound and destroy. Any fixes?
it triggers the other functions and it just doesn't work for sound and destroy?
@@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.
Thank you very much
No worries
Hi i am trying make a actor spawn in ounce i collected a certian amount of coins. How do i go about doing that?
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 .
thank you very much!
No worries!
That was exactly what I needed thank you so much
Glad it helped!
Merci Dadash
mokhlesim
I can not add Event BeginPlay
because in my BP_SpriteCharacter (for you thirdperson) i already have an Event BeginPlay
Same here, did you figure it out?
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 .
@@UnrealART I'll try it when I get on my laptop. Thankyou
عالی... باعث افتخاره...🎉 میدونم ایرانی هستی چون ایرانی ایرانی رو میشناسه:)
مخلصیم . لطف داری 🙏🙏🥂🥂
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
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
goat
thanks mate !
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.
that is inside the widget blueprint
I don't know I have to look into it to see what is wrong
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
@@papi_papillon thank you I've solved it somehow but unable to remember how.
Another tutorial using casting.. Guys it's terrible due to too much memory allocation.
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.
how to store coins in game after the game was closed/Quitted??
That's a different story, you need to setup a saving and loading system using a game instance
Beginplay is already is use for the movement for my third person blueprint. Any idea on a solution?
same shit.
@furkanserdar8725 irritating as hell I even tried zooming in on the video wondering where the movement was on his blueprint 😅
@@brothersgrimm1230 bro ı solved, use sequence after beginplay.
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 ?
@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 😅
you should make a mini game for that
yeah not a bad idea 👌😉
Doesn't save coins. Player dies resets to 0
yeah saving is a different story
@@UnrealART I found a way to get them to save. At least for the level.
@@mileshodge3477 how?
@@mileshodge3477 how did u do it??
@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
irani accent XD
are dadash
Thank you very much
No worries