First Person RPG | Items & Inventory #2
** It's likely best to start a new project with this package as enough as changed. **

(Note: The bug I mention in the video may be fixed. I haven't been able to figure out how to reproduce it, so I'm not 100% sure...but after making the video, I re-did one function that may have fixed it.)

Now the inventory screen has a grid for each player, where their items are stored. They can click and drag the items to a new spot on the grid, to another players portrait to transfer, or to their large portrait to eqiup. Once equipped, players can click the equipped object and drag it to their inventory to remove it, or transfer it to another player.

This video doesn't go over every detail, because there's simply too much. Even I'm confused!! In all liklihood, as I add more features for other types of items, I'll end up refining the code and cleaning it up.

This was one thing that I didn't know how to do before I started, so I was making it up as I went. I restarted a few times, and 5 days later this is the result. That type of coding practically begs us to redo it later, when we've got a clearer understanding of what we're trying to accomplish, and when other aspects of the entire project are more fleshed out.

Because the scripts are getting long, I'll no longer print them out here. Instead, download the package and check out the scripts inside Unity!

Download Unity Package

Video Tutorial

Please download the package and view the scripts in Assets/SFBayStudios/SFB Game Templates/1st Person RPG/Scripts