single

Creating a Stat Tracking Inventory System

Instructor:
Guest Instructor

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 and health

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. Links to assets not available in the project files: Font: Digital 7 Font http://www.dafont.com/digital7 Environment Textures http://gametextures.com (for Game Textures used)


Get this course and 251 others by joining CG Cookie

Awarded upon completion:
100xp +
Course Curriculum