40% TStat You must create a TStat class, very similar to TAsset but it has serializable min and max values that get automatically clamped if needed when modifying the Value property. It also has 2...


40% TStat


You must create a TStat class, very similar to TAsset but it has serializablemin and max valuesthat get automatically clamped if needed when modifying the Value property.


It also has 2 events instead of 1, one forValue Increasedand another forValue Decreased


It can also have an extra property where it tells you the normalized value (between 0 and 1)


I dont know if you can do this in Bolt, but do this part in C# and the rest in bolt (if using bolt)


30% Healthbar:


You must create a Player Character (a blue capsule is enough).The Player has a PlayerController with afloatStatHealth inside it.


You must create a UI Healthbar (UI Slider is enough), that changes its value whenever the player health changes.


Remember to normalize this value if necessary


To keep things simple, create a Tester Script that when you press Alpha1 it Damages the player and when you press Alpha2 it heals the player.


This can be inside the PlayerController if you want.



Use Events in Scriptable Objects, NOT POLLING



If you use Polling the section will be 0


20% Particles and Sounds


When the player Gets Damaged or Healed, a particle spawns and a sound plays


Play different sounds and spaw different particles for healing and damaging


Simple sounds and Particles wiht different colors are enough for this.



Use Events in Scriptable Objects, NOT POLLING



If you use Polling the section will be 0

10% Good Coding Practices:

  • Standaraized and project wide naming conventions

  • Your Code is DRY not WET

  • Organized and Aligned (Formatted) code

Sep 21, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here