Monday, 1 April 2013

Randomised death scenes

In order to stop death feeling too repetitive I decided to try and give the chance of seeing something different each death.
To this I took our death animation and posed it differently in three different ways in three different saved scenes.




After loading them into Unity's build settings I took note of where each of the scenes were loaded.


Finally in the Player's Controller script I wrote a piece of code to tell Unity to load any of the scenes that held the death animation (14 - 16) when the players health fell below 1.

(DS - 29/03/13)

No comments:

Post a Comment