Collect 'X' Items To Win / Open A Door | Collectable System - Unreal Engine 4 Tutorial

Поделиться
HTML-код
  • Опубликовано: 19 янв 2025

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

  • @SketchTheArtist
    @SketchTheArtist 3 года назад +28

    Just wanted to drop a 'Thank You' your way! Your tutorials have been a great help! Thanks!

    • @MattAspland
      @MattAspland  3 года назад +5

      Thanks so much for the support mate, it means a lot to me! All the best to you :)

    • @aasaphrocky
      @aasaphrocky 2 года назад

      @@MattAspland hello I was wondering how could you add animation to this?

  • @mihovilmikulec
    @mihovilmikulec 3 года назад +16

    I love this tutorial, for 2 reasons mostly: A) You used X/Y formatting for collectables display, other tutorials use 2 different binds B) No matter how many collectables we set up or randomly spawn, max number of collectables is automatically calculated instead of manually added. I love details like that!

  • @3DAntonio47
    @3DAntonio47 3 года назад +2

    Nice and simple design here, and the fact that it's dynamic is a huge bonus. I've got 'Gem Collectables' in my game, and this is a nice way to drag and drop gems as I see fit, which automatically updates the {Y} (of the X gems collected) really nicely.
    I also matched this with a vector parameter on my material, which randomly assigns 1 of 7 colours to each gem. Awesome dude, thanks for sharing this with us!

  • @Phoenix-sj9kf
    @Phoenix-sj9kf 3 года назад +1

    Haa now its official the next gamejam will be even better with these awesome tutorials:D
    BTW has anyone else noticed that no one ever dislikes matts videos? lmao no one should

  • @emilieheskey5942
    @emilieheskey5942 3 года назад +7

    Which tutorial are we supposed to use for the door opening segment?

  • @chickishot8172
    @chickishot8172 2 года назад +19

    I love this but there is a major issue. If you start in a different level and go to the level that has the collectibles it says there is 0 collectibles to collect and even if you collect the collectibles it won’t open that door.
    Edit: I’ve localized the problem. It’s in the BP_ThirdPersonGameMode. It’s because the Event Begin play only does it once at the start of the level you begin with. If you use Event Tick instead it forces it to work across different levels, but it is a bad solution because one it’s event tick and two it messed up how many collectibles you collected when the widget appears to show how many you collected. I hope Matt eventually does another tutorial for this series because I can’t think of a good way to get it to work without event tick.

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

      the only prob with this solution is that it just shows u 0/3 for example Collectet and Y goes down, sad that it doesnt work like intended in the tutorial

  • @SnakeRex_
    @SnakeRex_ Год назад +4

    In 9:19 when i search for integer - integer i get another node which i can't connect it with collectables left and connect it with x, btw i am using ue5.1 any ideas?

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

      Just use subtract symbol ( - )😊

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

      Press the - button two times then enter, youll get the result that you need. It worked for me now, I use the latest version of ue4 by the way.

  • @ItsRave_n
    @ItsRave_n 6 месяцев назад +2

    I am on UE5 but will this still work? I am half way through the video and im stuck on the part where you need the "Integer - integer" because it does not show that component for me. Any fixes to this?

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

      Ive had the same problem. But UE5 added most of the minus and add integers as minus and add.
      Using the normal ones works just as good!

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

    Thank you for making this!! You are SUPER helpful.

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

    As always, an outstanding tutorial!

  • @g-dojjo
    @g-dojjo 3 года назад +3

    Thanks brooo! Your are making a really great tutorial 0_0!!Thanksss again

    • @MattAspland
      @MattAspland  3 года назад

      No problem at all bro! Always happy to help :)

  • @juanb6570
    @juanb6570 2 года назад

    Wow this is so important and yet so simple to do, i really apreciate this tutorial Matt huge Thank You

  • @Nobody-u5e7c
    @Nobody-u5e7c 11 месяцев назад

    Amazing tutorials on your channel , really helpful, thanks a lot !

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

    thank you ,realy helpfull tutorials ...(tip for those who dont want to press a button to collet coins or open doors like i wanted :D ...i just add a sphere collision and instead the KEY to press just do OnComponentBeginOverlap on that Spherecollision and connect to the rest of the code instead of the button to press) :D

  • @mjesensky2760
    @mjesensky2760 3 года назад

    Than you, Matt! Your tutorials are fantastic. :)

  • @edu4rdo665
    @edu4rdo665 3 года назад +1

    Always surprising us !! Could you show us how to do a cinematic intro before starting the game? I would like to do an intro when starting my game, getting out of bed and only then starting the game, but I couldn't find a tutorial! If possible please do a tutorial, I am afraid that maybe many possibly need this tutorial! You are phenomenon brooh :D

  • @kenalpha3
    @kenalpha3 2 года назад

    Thanks for this and the other vid. Very cool, and you taught the fade Hud animation. I was able to adapt to what I wanted.

  • @spyderhernandez
    @spyderhernandez Год назад +3

    Hello! For some reason my "project" picks up when I collect the collectibles and changes the X value but the Y value stays at 0. Any tips?

  • @andreman86
    @andreman86 3 года назад +5

    thia is really good tutorial. That was exactly what I wanted.
    I have a suggestion for another tutorial too: How to make writable text like if you press on a box it will let you write something like a textbar or something

    • @MattAspland
      @MattAspland  3 года назад +2

      Thanks a lot man, and great idea! I can add it to my list :)

  • @dannioh5
    @dannioh5 3 года назад

    THANK YOU!! (Finals week and this helped me so much)

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

    Good tutorial. I take it you can report how many items are missing when you get to the door by adding get the remaining number of collectables and adding to the failed state.

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

    I'd like you to do a tutorial for when you don't have enough collectibles to open the door, and a widget pops-up for it. Also, thanks for this tutorial, helped me :)

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

    Thank you very much for these helpful tutorials!
    You literally saved me

  • @DenisZaharenko
    @DenisZaharenko 2 года назад +2

    What if i want to collect different objects which i then need to place on podeums first?

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

    Thank you for this!! How would this work if you have different components, instead of the same object? Like if you would have to collect one square, one sphere and a cone before the door would open?

  • @CL-fg5ne
    @CL-fg5ne 9 месяцев назад

    Works for me in Unreal 5.3, great tutorial

  • @adamjensen253
    @adamjensen253 2 года назад

    Amazing example. It was very useful for me. Thanks alot!

  • @connorappleton1945
    @connorappleton1945 2 года назад +2

    Do you know how to make one with different objects?

  • @ECHSBACHS
    @ECHSBACHS 3 года назад +1

    Worked Great ! Thanks !

  • @FormerRope
    @FormerRope 2 года назад

    You always have what I need, thank you so much

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

    hi, can you help me? when im cast to thirdgamemode why variable "Collectables Left" and " Total Collectables" can't connect with cast to thirgamemode?

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

    Love this tutorial. Although I've ran into an issue were i have a - mark appear next to the number which is the X value? Everything else works perfectly.

  • @samsungalaxyxd1823
    @samsungalaxyxd1823 3 года назад

    great tutorial!
    my idea for next one: user writing a name for save file or character etc.

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

    Thank you so much for the tutorial!

  • @Moonriderr
    @Moonriderr 3 года назад +5

    Hey! Thank you very much for the clear tutorial. I have one question tho :)
    How to make the system be able to recognize different collectibles?
    For example, If I have to collect stones and wood, how to sort them in a different list and be independent from each other> Thanks!

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

    Excellent tutorial. Thanks. Just a quick question. How do we link these codes to open a portal to access the next level? 🤔

  • @SirGeneral
    @SirGeneral 2 года назад +1

    Could you try to re-make on UE5?

  • @MZONE3D
    @MZONE3D 3 года назад

    Nice one mate :) thanks!

  • @reecekassiram7840
    @reecekassiram7840 3 года назад +3

    Hey, Matt great video!!! I'm stuck on how to make the game display a game over screen instead of unlocking the door you have included. how would I achieve a way to display a game over screen after the player has collected all items???

    • @zolvh
      @zolvh 2 года назад

      did you find a way

    • @reecekassiram7840
      @reecekassiram7840 2 года назад

      @@zolvh bro I posted this a year ago, idk what I did but his discord is great for help :)

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

    where did the code in the door exit and the door exit come out of

  • @crimsontyrs
    @crimsontyrs 3 года назад +3

    Nice job Matt! So how would you connect this to open a portal to another level after all items are collected?

    • @jmarte6089
      @jmarte6089 2 года назад

      I would also like to know how to do this. I tried connecting some nodes together to see if it will work. No luck yet

    • @jmarte6089
      @jmarte6089 2 года назад

      I just figured it out!!! Im not sure what setup you have but at the 13 minute mark of the video is what you need to pay attention to. I have my game set up to spawn a level transition/collision square/wall after collecting "x" number of collectibles. I have an on component begin overlap event instead of the press "e" so that they automatically pick up. Get all the coding goodness in there. The changes happen after the branch. I added a Start Camera Fade node with the target being a camera actor manager. Then a delay node and then the Open Level (by object reference node). Hope this gives you a little something towards your goal.

  • @johnathanmartin423
    @johnathanmartin423 3 года назад

    Just wanted to day I'm learning more from u than my college 😂 keep up the great tutorial!! Oh for your next video in stead of Collectables could u do it e.g 3 balls in a basket add to 3 and transfer into a door being open with light indicators or can I use ur concept of this because u wouldn't use the third person BP for it? If not don't worry about it!!! Thank you for ur content probably would of failed if it wasn't for u much ❤

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

    I apologize for suddenly asking you a question!!
    First of all thank you for making such a great video!!
    I stumbled upon a variable called collectableleft.!!
    i didn't make this!!
    Which video should I watch to find out?!
    Or can you remake the video so that it is complete with only this video?!
    thank you for listening!!!

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

    Hello Ive a question. Let say i want to create a game where it has multiple tasks that needs to be done by the player. However, in each task, I want to restrict the player from holding certain items in the level and can only hold the items that is required for a specific task. For now, Ive created an actor to watch all the task completion but it looks like a spagetti code now as theres a lot of loops, collision enabling, and booleans to be unchecked or checked. Is there any best way to create a better task management system?

  • @benlawrence9665
    @benlawrence9665 2 года назад +1

    How could i do it so that i can have multiple different models

  • @charzxd6515
    @charzxd6515 3 года назад +12

    You legend!

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

    Hi! I really need to know how to get the "collectibles left" node. I'm using the newest version of UE4. 4.27.2. But for some reason, it doesn't have the node and i don't know why. I've been looking for ways to find it for like 4 hours straight and I REALLY need this node!!! Please tell how!

  • @Glitchimations
    @Glitchimations 2 года назад +1

    Hi, followed steps but when i collect the collectible, it starts at 4/2, then i collect the next one, 0/2. Is there a way to fix?

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

    so if any of u guys have the problem with it not responding in an other world, i got a workaround. So basicly u leave the x out of the formattext and just write "{Y} files to got to the exit car" or something else ur game has to search for, then it should work normaly. Hope this helps!

  • @betranova
    @betranova 12 дней назад

    How i can make a progress bar instead of a text? Please i'm a little bit crazy about this

  • @funnymangaming3384
    @funnymangaming3384 2 года назад +1

    Im trying to make it so it makes a win widget appear on screen however any time i do it it does not work and i've tried a few variations im worried im doing it in the wrong place or using the wrong inputs

  • @ShabbySaiyan
    @ShabbySaiyan 3 года назад +1

    Please tell which video can i watch to make the door please

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

    I don't see "get collectable left" node in collactableBP. Why it can be?

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

    I have a question, I cant open the door with the ¨O¨ when I press nothing happen.. Its not the first time I see this issue that i cant resolve. You know why thats happen?

  • @jacobmonger5388
    @jacobmonger5388 3 года назад +1

    Hello Matt, first off thank you for the abundance of videos! I have been working my way through this tutorial, and have my items/counter working great. My issue is unlocking the ability to open a door after collecting all items. I used your video "How To Use Level Sequence | New Matinee | Opening A Door (UPDATED) - Unreal Engine 4 Tutorial," For the door opening portion of my project (also works great). The end of this video shows the door with a bit of a different set up. Is there a way you would recommend using a collectable counter to control the ability to unlock the door with video I mentioned? As of right now, I am a bit confused how to make them work together to keep the door locked until all items are collected. If you get a chance to respond, Thank you in advance!

    • @Chunkies32
      @Chunkies32 2 года назад

      Hello Jacob did you get it working? I'm having the same issues, and could use some help on that part aswell
      Cheers

  • @MegaSmithGaming539
    @MegaSmithGaming539 2 года назад

    This is great! Do you think you could do a tutorial where you collect items in a level/game to unlock a bonus level?

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

    So, it won't work for me. It's because i used collectibles less instead of collectibles left. But the thing is, I don't have collectibles left. Why is that? Is there a way I can fix that?

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

    Hey Matt, can you show how you got that door exit BP? It's the only part that's stumped me. I'm also using UE5 so if you can, let me know any differences I should be aware of. Thanks!

  • @dishsoap2322
    @dishsoap2322 3 года назад +1

    Hey guys i need some help with something like this i was wondering if there was a way to make the game end when you collect all of them instead of opening the door if you know a way please let me know😁

  • @dronaroid
    @dronaroid 3 года назад +3

    Do you have any plans for opening up a Patreon?

    • @MattAspland
      @MattAspland  3 года назад +3

      Hey mate, I actually opened one up a week or 2 ago :)
      I'll link it below if you want to check it out, thanks for the support in all ways!
      www.patreon.com/MattAspland
      ruclips.net/video/Re5rLSky5u4/видео.html

  • @imaginaryconception
    @imaginaryconception 3 года назад +1

    How to replicate that so that all players (in multiplayer) also have the items collected? please

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

    Thank you for the tutorial! At the 9:46 mark, when inputting the node with Integer - Integer, it is not available in UE5.3. Is there a workaround for this section? I would love to use this code in the game I am developing. Thank you!

    • @CL-fg5ne
      @CL-fg5ne 9 месяцев назад

      It should be there I think. I think it might be called "minus int" or something similar. It works for me

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

      Press the - button two times then enter, youll get the result that you need. It worked for me now, I use the latest version of ue4 by the way.

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

      i think u use substract

  • @vanyAkun
    @vanyAkun 2 года назад

    My variables get collectables left and set dont appear when I need to choose as third person game mode. Help please T.T

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

    I know this is a bit old but how can i open a LVL after i collect the max amount?

  • @flyingmalkie4346
    @flyingmalkie4346 3 года назад +1

    Hey Matt you are my favourite gamedev by far. Is thier any chance you could make a video on 'learning' new skills or abilities? Say you wanted to add a spin attack to your standard sword slashes or jump kick to your melee, how do you implement it after an event is triggered?

    • @MattAspland
      @MattAspland  3 года назад +1

      Hey mate, thanks for the support! :)
      I can add that to my list, you'd probably want to use Booleans, i.e. "can spin attack?", and check to see if this is true when doing a normal attack, and if it is true, do the spin attack, if it is false, do the normal attack (or nothing extra).

    • @flyingmalkie4346
      @flyingmalkie4346 3 года назад +1

      @@MattAspland I mean more like, you do a quest and can only use new ability or new whatever after said quest, or any event if your choosing, would you just do Boolean and set the default to false, and then set true when custom event quest xyz completed?

    • @flyingmalkie4346
      @flyingmalkie4346 3 года назад +1

      @@MattAspland I’m also brand new to all this game dev stuff, and trying to create a spell that’s like a portal redirection, someone fires a spell or arrow, you cast the spell and everything goes slow mo, you get to place a portal anywhere for receiving object, another to exit, then play speed goes normal and then the thing goes through the portal, I know you did a portal video but I’m struggling to figure out how to add the slow mo, place the portals Away from the character, like you don’t just spawn it in front of you it pops up and you can place and rotate it anywhere same wit. The next one

    • @MattAspland
      @MattAspland  3 года назад +1

      Yeah exactly, you'd set the Boolean to True when you've unlocked it. And great idea man, I love it! For figuring out the slow mo, this video might help :)
      ruclips.net/video/hjXR0JCGg5U/видео.html

    • @flyingmalkie4346
      @flyingmalkie4346 3 года назад +1

      @@MattAspland combining that with your portals video will help a lot, anything on how to spawn the portal then be able to place and rotate it? Sorry for all the questions

  • @crimsontyrs
    @crimsontyrs 3 года назад +1

    Hey Matt, So how would you take this to the next level. Meaning, where you have it tally the total you need for each level and also keep a running tally for the whole game? Your help would be greatly appreciated.

  • @unrealdevop
    @unrealdevop 3 года назад

    Great tutorial thanks

  • @brokenminds9701
    @brokenminds9701 2 года назад

    Why does that jot work for me?
    Btw.. i didn't used the thirdperson i wanna do it on first person but it doesent workd every step works but at 13:30 i get stuck i cant get the variable

  • @batkeytv1080
    @batkeytv1080 Год назад +2

    how replicated for a multiplayer game ?

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

      Hi did you find the answer?

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

    for some reason set/get collectables left cant link to cast to thirdpersongamemode

  • @amybarker134
    @amybarker134 2 года назад

    hi< I am doing this for my coursework at college, how do I do it wear it ends and wins the game after collecting them instead of opening a door?

  • @brighthammer5354
    @brighthammer5354 3 года назад +4

    Thx man

  • @bluebells493
    @bluebells493 2 года назад

    Thank you so much. Do you have a video where you show how to collect everything inventory?

  • @primitivepatterns
    @primitivepatterns 3 года назад

    Thank you so much! Can you make a video on ice that is slippery for the character to walk on? Also maybe a floating companion that follows you?

  • @Praetorian-Guard
    @Praetorian-Guard 3 года назад

    Could you do the same tutorial just for multiplayer? Or show whats different?

  • @wolfiedgr8t
    @wolfiedgr8t 3 года назад

    This would work well with the randomly spawning items tutorial, great stuff. Thanks Matt 👌

    • @MattAspland
      @MattAspland  3 года назад +2

      Great idea man, always love linking tutorials! Nice one :)

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

    what about if you just collect all of the items and just kick you to a another level or back to the menu

  • @MiniSlac
    @MiniSlac 3 года назад +1

    does this work the same way as if there is collectable easter eggs which get added to a in game collection

    • @MattAspland
      @MattAspland  3 года назад +1

      It should work similar yeah, and you can maybe make unique ID's (integers) for each item you pick up, so you know which item you have collected.

    • @MiniSlac
      @MiniSlac 3 года назад

      ok thanks for the useful info and tutorial! 👍

  • @GamingWarlord64
    @GamingWarlord64 3 года назад

    Thank you so much!

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

    I am making a level prototype for my university final project. I used this tutorial together with spawning collectables in random locations, but instead of door, I have a portal that is activated when collecting all gems in the map. For testing I placed 6 gems and had 2 of them spawn in at the start of the game. I figured it out and it worked, however when I used your tutorial to make a main menu, after I press to start game, instead of 2 gems available and 4 missing, it makes 4 available and 2 missing. How can I fix it ?

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

    Im having problems getting the door to open after collecting items

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

      Same here, and I followed every single step.

  • @yourikanatali3917
    @yourikanatali3917 3 года назад

    Hello, I was wondering if you could help with a little problem. I want to make my bookshelf slide open after collecting all of the collectibles. I have both the logic for the collecting and the sliding bookshelf part, but I want to somehow connect the two together if that's possible? So that it does what I want. How do I go about doing that?

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

    Thank good, this helped me so much🤗

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

    how to do remove the widget off the screen if u created a collect items first widget but it just says on the screen

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

    having an issue where the star gets collected but the widget counter does not always update with the amount collected. happens maybe 25% of the time. anyone know how i could fix?

  • @mallugamedev4951
    @mallugamedev4951 3 года назад +1

    Plz Make a video about mobile touch controls

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

    Is there any way I could do something like this but with different item models? Also your channel has really helped me with my coding journey!

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

      Have you found any solution for this?? Cause am searching about this too

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

      Nah sorry mate i suggest ue4 forums they usually have the answers

  • @LennoxFyre
    @LennoxFyre 3 года назад

    Hello Matt. This video helps a lot. However, I want to apply these mechanics to solely a level instead of the entire project which is the gamemode. Which Cast To and Get nodes do I need to apply them to a specific level?

  • @narrgamedesigner2747
    @narrgamedesigner2747 2 года назад

    Noice, I combined this with an on/off light switch

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

    always perfect

  • @smodo_
    @smodo_ 3 года назад

    Hey I want to make it open a new level in stead do you know what i would do?

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

    Bro, you don't showed in this video how to make "Door Open" what is ?
    I tried to make this tutorial two times and not working..

  • @darrenbostock6645
    @darrenbostock6645 2 года назад

    8.55... sorry about this, but i am not able to put the from the game mode ref the get total and other collectible var... any ideas?
    Thank you in advance

  • @r_e_d_squirrel367
    @r_e_d_squirrel367 2 года назад

    another gem in under twenty

  • @javiercuriel8523
    @javiercuriel8523 2 года назад

    how do i interact simply by overlapping the PC with the trigger to interact with the collectable items instead of using the e key

  • @Mrkev217
    @Mrkev217 3 года назад +3

    thanks alot

  • @MossBlox
    @MossBlox 2 года назад

    heya! trying to use this code for a project, but might need a hand. instead of collecting one object that has been copied, i'm trying to collect five different actors. do you know anything that could help me with this whist using everything in this video? thanks m8!

  • @doanways
    @doanways 2 года назад

    Hi so what I want it to do after all 5 are collected instead of opening a door I want a wall to disappear

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

    how can i do this in multiplayer and all player shares the collected items

  • @CrionicFear
    @CrionicFear 3 года назад

    How do change the name that appears when picking up the item?