Week 4 | Dev Log | Jamie Pasnin


Week 4 | Development Log | FPS RPG

Creating Health System Part 3

Introduction

This week I was tasked to extend upon the health system further from last two weeks by creating:

  1. A mesh sprite display of health and armor for AI characters within the game world.
  2. Display the name and optionally display the level of the AI characters.

Goals

The following are the primary goals for this week.

  1. A mesh sprite display of health and armor for AI characters within the game world.
  2. Display the name and optionally display the level of the AI characters.

Personnel

The following is the primary author and any secondary authors who assisted in completing the set tasks given this week. 

  • Primary - Jamie Pasnin
  • Secondary - N/A

Technologies, Tools, and Resources Used

The following are the technologies, tools and resources used to assist in completing the set goals this week.

Key Tasks Undertaken

The following are the key tasks that were taken to help a developer/reader understand how the tasks were completed.

  • Began by creating AI character health and armor sprites within Adobe Illustrator. Copied from Borderlands 3. Screenshot below:
    • Health and Armor AI Character Sprites
  • Then created empty object and inserted the health and armor AI character sprites into Unity.
  • Created a 'MeshBarAndTextCombination' sub-class script that inherits from 'BarAndTextCombinationBase' parent class script. Created the following variables and functions shown in the screenshots below. I used the billboard camera location tracking method from Brackeys How to make a HEALTH BAR in Unity! Youtube video.
    • MeshBarAndTextCombination Script Variables
    • MeshBarAndTextCombination Script Override Functions
  • Placed the script onto the enemy object and set the variables accordingly. Screenshot shown below:
    • MeshBarAndTextCombination Script Variable Editor
  • Then added enemy UI button debugging for health and armor which finally created the result shown in the screenshot below:
    • In-Game Screenshot Of Final Result
  • Then pushed my work onto Jamie_Pasnin branch and the Master branch on SourceTree.

What I Found Out

The following is any particular lessons learned this week.

  1. Learned how to create in-game sprites that follow the camera.
  2. Learned how to set a slider for the level variable in Unity Editor.

Open Issues/Risks

The following is a list of any issues or risks that were unable to be resolved that caused tasks to not be completed this week. 

  • No issues or risks were presented that caused tasks to not be completed. 

Solution Justification

The following describes why I chose the solution that I did to complete the goals set this week. 

I chose the solution that I did for creating in-game world sprites of importing sprites and using Text Meshes is because that is what I found to work for creating the effect similar to Borderlands 3.

Leave a comment

Log in with itch.io to leave a comment.