In this episode we'll be adding a loot table to our enemies so they have % chances of dropping different types of loot! We'll create the Loot Item class and use it in our enemies script to create our loot table, then get our items dropping when our enemy dies.
❗️❗️❗️📢 BUY THE COMPLETE GAME TEMPLATE NOW!!! 👾❗️❗️❗️
https://gamecodelibrary.itch.io/2d-pl...
All source code for all videos I have made and will make in the future can be found on my Patreon:
/ gamecodelibrary
Check out the series previous videos:
• FULL Platformer Tutorial Series - Unity 2D
Sprite sheet: https://www.kenney.nl/assets/1-bit-pl...
Discord: / discord
I'll be posting new videos every week, so be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)
If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡
0:00 - Intro
0:17 - Current Enemy Script
0:38 - LootItem Class
1:22 - Enemy Script
2:54 - Loot Table Setup
3:20 - Change to Enemy Script - Drop only one item
3:38 - Working!
4:00 - Next Video
4:13 - Outro