UE Blueprint Fundamentals | Class #5-4 | Nested Loops & Bubble Sort

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

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

  • @toxicNautilus
    @toxicNautilus 20 วันที่ผ่านมา

    Kevin never misses. The content from this channel is always S-tier 🎉

    • @livinfreestyle6727
      @livinfreestyle6727  18 วันที่ผ่านมา

      I mess up ALL THE TIME, but glad you find the vids on the level

  • @R4k00n3D
    @R4k00n3D 5 หลายเดือนก่อน +3

    Your way of teaching and explaining things is what I have been after for ages! Thank you!

    • @livinfreestyle6727
      @livinfreestyle6727  5 หลายเดือนก่อน +1

      You're very welcome! Thx for dropping comments!

  • @adamnellemann9316
    @adamnellemann9316 11 หลายเดือนก่อน +7

    As a sound designer, trying to grasp programming to better my chances in the industry, your classes have really helped me believe these goals are achievable. Wonderfull teaching! Thank you Kevin!

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

      Sound designers are magicians to me! I'm glad the style works for you and thanks for watching

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

    Thank you for another super helpful tutorial! I'm getting more and more excited to start making games as I learn! :D

  • @graham8624
    @graham8624 7 หลายเดือนก่อน +2

    I really appreciate the simple application examples you give. Really helps to get your mind around designing game concepts.

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

      Good to hear and thanks for letting me know

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

    I love your videos, it is interesting getting the scripted programming from a visual blueprint perspective and it reminds me of almost 30 years ago when I was doing the same stuff in College for an ANSI C programming class (pre-object oriented) over text-based inputs.
    Around time 28:10, you are setting the SwapFound Boolean to False inside the Supervisor Loop, but you end up breaking out during a check on the entrance of that value into the same Supervisor Loop. Because the Boolean defaults to "False", it works normally, however, the Setting should occur before the entrance to the Supervisor Loop and not after entry to the Supervisor Loop and before the Worker Loop, for technical correctness. If the Boolean had defaulted to True instead, it would have never been set to False in the first place because it wouldn't have entered the Supervisor Loop and would have broken out immediately. Unless the Break check occurs at the end of the Supervisor Loop instead of the Beginning??? Which I suppose is a possibility.

  • @53thephenix
    @53thephenix 7 หลายเดือนก่อน +1

    Hi, I've been learning a lot thanks to your classes. I'm having a bit of a problem for the step at 7:41. When I drag the Array element pin the "get inventory" option doesn't exist. I even tried with other type of variable but I can never link the array element to any kind of Variable. I double checked and triple checked, I use the same nodes and my Inventory variable is an array but nothing seems to work. I did manage to make the option "get Inventory" appears but it is only by disabling the context sensitive option when linking nodes and it just treat it as a simple get variable without linking it to the for each loop node before. I'm on UE 5.3 and I'm quite stumped.

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

      Did you set the class of actors before you created the for loop? It has to know that it's a BP_ItemBase otherwise it won't be able to "Know" that you have a get inventory.

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

      you can also hop in discord and share a pic of your BP in the forums-question so we can double check too

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

      @@livinfreestyle6727 Hi, thanks you for such a quick response. I had the BP_itemBase properly set but still nothing. In the end I realized I ignored the first rule of any problem "have you tried to unplug it and plug it again", I deleted the for each loop and the get all actor class and redo them, it works now so yhea I don't really know. I guess Unreal works in mysterious way and I have to remember that it giveth but also taketh away. Thanksfully I had a bunch of other great tutorials to do even tho I was stumped on this one so I ended up having a lot of fun with your video on vectors with dash and launch pad. Really appreciate your channel and the effort you put into it.

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

      @@53thephenix awesome. Just so you know, there are some notes in unreal that when you make them they will take the type of whatever was at the time so if you make a for loop and the connected variable is an integer and then you switch that variable , it might get confused so you have to remake the four loop.

    • @53thephenix
      @53thephenix 7 หลายเดือนก่อน +1

      @@livinfreestyle6727 ho it's good to know thanks a lot.

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

    Great Series! Finished it. here since UI is something i will come back at at a later point. But absolutey the best series i ever watched.

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

      Wow, that is great to hear. As you go about your game dev adventures, if you find topics you wish we had covered as part of fundamentals, Let me know (did you also watch the BPI and Blueprint Inheritance stuff?)

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

      @@livinfreestyle6727 No didn‘t will look into that tomorrow, this is also something i always wondered about how its properly done. Thanks.
      Edit : do you have a link for me for that? Sadly im not able to find it through your Channel just from the description.

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

      th-cam.com/video/w9d2aVRjBrU/w-d-xo.html
      we did the BPI class live, so you gotta check in the live section:
      th-cam.com/users/liveoTST9didni4?feature=share
      Also I am working on a "map" (just too many videos right now) to help people find ... a good path through type thing

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

    I just completed the 13th video of the series. It took almost 1 week! Before this Unreal Engine was a mystery to me, and I feel lucky to find this playlist! I can't believe I just learned how to perform bubble sort in Unreal Engine, Now I am thinking can I solve leetcode problems in Unreal Engine 😅 I guess I should try it!

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

      Thanks for taking time to drop some comment and for watching ( I had to look up leetcode!)

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

    now i can use this to complete my own inventory system. i dont want to copy someone's blueprints cause i want to fully understand it so that in the future i can just create my own systems this helps me a lot thank you very much!

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

      You're very welcome. Teach a fish right!

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

    Hi Kevin and thanks a lot for this great tutorial. I have a question in 6:29. There are two Random Integer in Range nodes, one before the For Loop node and the other after that. My question is do these two Random Integer in Range nodes get updated in each loop? You have 4 BP_ItemBase in the scene and in order to better see and test my question, I reduced that and placed one actor in the scene to clearly see what is going on. Then I printed that and this was printed: silver, golden gun, golden gun, hammer, ax, ammo and golden gun. It seems that the Random Integer in Range node that is before the For Loop node picked number 6 and does not update and regenerated for each loop but it picks different number each time we hit the play button. But the Random Integer in Range that is after the For Loop node is updating in each loop so that different items are picked in each loop and added into the inventory. Is my assumption correct? The node that we feed into the first/last index input of For Loop node, in this case Random Integer in Range node, does not get updated in each loop, but those nodes inside the loop body, which are after the For Loop node, get updated in each loop. Is that right?
    Sorry for the long description and thanks very much for your time and help in advance 🙏🏻🍀

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

      This is a great question and important to understand. The random integer or any random input is updated EACH TIME the pin is read. So for example if you had a random integer...A SINGLE random integer node that you connected to two consecutive prints, it would give you 2 random integers. If you wanted to print a single Random int you would need to store the random integer and print it twice. So the one inside your loop, that value is being read on each execution of the loop and therefore being updated

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

      Thanks a lot Kevin for the explanation and example 🙏🏻🙏🏻🍀…. I understood that 👍🏻

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

    Thanks Kevin! Saving this video

  • @s.o.nferaly7822
    @s.o.nferaly7822 3 หลายเดือนก่อน

    Greate video keep up the food work.bwould like to see more coding in gameplay its self but maybe that wil be later in the videos🎉

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

    Hey, you changed your angle! Cool! Great instruction by the way. Thank you!

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

      Ha ha! Oops. That was unintentional. It looks like the recording software flipped it for live setup and I forgot to set it back. Thanks for watching

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

    Thank u for this course, it helped me a lot to understand visual scripting better, but i have a question in bubble sort with an array of 5 elements, the number of cycles in the for loop with break is 4 during the last cycle, Given that the last value of the inner loop might be -1 when calculating the range as `Length - 2 - i`, is this normal? and how does this affect the overall process? Thank u again

  • @vilandboss94
    @vilandboss94 29 วันที่ผ่านมา

    Hello, first of all... I want to thank you for creating these tutorial. It's been so help full.
    Although, I have two question.
    1. When I run the print on 6:32, what I get was. Random max array Inventory 4-10, with random value in it. (I think, it should work like mine since we set on 'for loop' 4-10).
    But when you compile you get 30 max item with random value. how come?
    2. And maybe because of that. I can't 'get Inventory' when I drag form for each loop array element icon. There is no 'get Inventory' 7:40.
    Thanks... I thought maybe I skipping something. I use version 5.4.4 and 5.5.1 it's still same.

    • @livinfreestyle6727
      @livinfreestyle6727  29 วันที่ผ่านมา

      I am not entirly clear what "Random max array Inventory 4-10" means. If you hop in discord and post your blueprint we can help

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

    Hi!, at around 7:40 Unreal doesn't let me link the inventory array with the forloop. It just pops the variable in the graph without creating the target pin. Am I missing something?

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

      Does the pin you are dragging from look like a stack of cubes? ie is it the array icon? If so when you drag if you type "for" you should see the for loop. The only reason I can think of that you wouldn't is if your variable is NOT an array and just a single item (which looks like a pill instead of a small grid)

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

      Huh!, funny, apparently it's a version thing. Couldn't do this on Unreal 5.0, updating solved the issue!

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

    So I know you mentioned bubble sorts being less efficient for larger quantities but out of the rest of the options in the previous videos are there reasons to choose one over the other for optimization/efficiency? Or is the difference in efficiency insignificant enough that it's more important to focus on what works best for me and my situation?
    I just assume that if you have a lot going on at once (like a horde of enemies) you want to choose the most efficient sorting method?

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

      Yes, in general you want the most efficient for large amounts of data. However, efficient could mean time to build as well. It also means understanding the data. Some sorts work faster depending on whether the data is partially sorted or completely unsorted to start with. So if you have a series of sorts that are already done, you can just choose the fastest one for example. Part of this was to help introduce the idea of sorting and the use case. I can't even remember how to write a quicksort for example, but it's fine. If I need it I can just look it up.

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

      @@livinfreestyle6727 Yea that makes total sense. Thanks!

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

      @@charlieashwood 👍

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

    这个冒泡排序的步骤用图表显示很用心了

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

    This series has been great help, but as of this video, things are starting to become brain mush where I'm not absorbing it as well as the previous videos. Is this a normal part of the learning process with this, or am I just bad at understanding all these nested loops and arrays?

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

      It is normal for sure. I'd say, take a break. Try something else like the twin stick shooter, then come back. These core learnings aren't going to change and it's one of those things that may click better the second time. Also it is for sure getting more complicated.

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

    Really great stuff!

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

      Glad it was helpful. Thanks for checking out the channel!

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

    5-4的7:48 我获取不了这个get inventoy

  • @Mo-tf8cs
    @Mo-tf8cs 3 หลายเดือนก่อน

    Is it still wort getting into game dev with ai advancing? wouldnt it just replace me in like 2 years? Because i am following these tutorials and they are really helpful but i cant really get it out of my head that all my time learning this now will be in vain in a couple of years. Could you give me your opinion on this? Thanks in advance.

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

      There's kind of a lot of answers to this. The first one that jumps to mind is...are you just going to give up? Let AI win? At the core I would hope not. Along those same lines I think there is a world where AI helps us do things MUCH faster and even if AI takes over I still think there is a world where hand crafted experiences are rewarding much like why you buy a hand made knife, bowl, painting, etc as opposed to one that comes off a factory line.
      Now....if you are wondering if there is another career that might be more "AI resistant" and whether you should do that instead....Health care pops into my mind and I'm sure there are others.
      But I"m not gonna surrender. Im going to make games and short films cuz I love creating things.

    • @Mo-tf8cs
      @Mo-tf8cs 3 หลายเดือนก่อน

      @@livinfreestyle6727 ok thanks for that, i am going to keep learning aswell. Because i want to make a game in the future it might not make me money but thats something i can handle. But somehow i have this feeling that if i dont persue this i am gonna regret it not monetary but in the sense that i maybe then missed my chance. Anyways, thanks for your opinion gave me a bit of hope i would say, hoping to finish your tutorial series in the next 2 days, really cool that you provide this for free.Thanks

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

    I`m wondering if there is a reason why unreal has no build-in function to sort array of numbers.

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

      There are a bunch of array utilities for sorting. If you right click in a blueprint you can see them under the array utils

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

    I put space while typing "golden gun" , and UE5 split my string into two different index! So I remove the space and it is working fine 🎉

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

    原来在Actor的获取变量和在角色获取变量,出现的节点截然不同

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

    蓝图节点一多,线路也跟着混乱了