CGCookie - Creating a Stat Tracking Inventory System
Mp4 | Video: h264, yuv420p, 1280x720 | Audio: aac, 44100 Hz, 2 channels | 909MB
Genre: eLearning | Language: English
In this tutorial series we'll be going over how to create a stat tracking weapon that uses UI elements to display things such as ammo and health status in real time. We'll be combining this with animations, scripting and some images to create a unique weapon system. You'll need to use Unity 4.6 as we'll be using the "world space" UI to place text and images directly onto our weapon.
The things that will be covered in this series are:
How to use a world space canvas onto a moving game object
Using Mecanim and animation events to call a function at a specific time
Creating text elements that update their values based on C# scripts
Using GetComponent to grab components from other game objects and change their values
Animating a UI mask with a script using a scrollbar and an image
How to create a simple pickup object that can add or subtract values such as ammo
This course will end with a student challenge for those who want to take the skills and
techniques they learned and apply them in their own unique way. This challenge is set to test what you've learned throughout the course and encourages you to think creatively to achieve a specific function within the game.