menu
Table of Contents
-
Modules
First you'll create a Game Parameter, which is an object that receives specialized game calls.
-
Launch Wwise and open a project file. Make sure you open the Module 5 project file.
-
In the Project Explorer, select the Game Syncs tab.
-
In the Game Parameters folder, select the Default Work Unit and then click the Create new 'Game Parameter' button.
-
Rename the new Game Parameter object PlayerHealth.
Game Parameters communicate a number within a defined range. This numerical range could be any range of numbers. For example, using the scenario of a car’s speed, the range could be 0 to 300, representing kilometers per hour.
In the case of Cube, the health meter has a range from 0 to 100, which coincidentally is the default range of values for Game Parameters, so you don't need to change the Min and Max values. However, you do need to set a Default value. This ensures Wwise has a value to start with if, for any reason, the game doesn’t communicate one.
-
Change the Default value for the PlayerHealth Game Parameter to 100, which represents full health.
Next you'll import the heartbeat sound that the Game Parameter will effect.