Saturday, 27 February 2016

Changing scenes, only a button press away!



While using the free version of Unity is still incredibly versatile, it does have its limitations. Namely  a lack of implementation for cut scenes. While not a necessity in a story driven game, they have become expected, and can provide information and character development in a far more direct manner than mechanics can at times.

Through experimentation, a simple solution was achieved in the manner of single scene shots, with character idle animation in place of full animated cut scenes. 

By adding a new GameObject to the scene and attaching a C# code. Within the code us an update function that runs 'Application.LoadLevel' when 'KeyCode.Space' is inputed. Allowing for the scene to change every time the space bar is pressed.

No comments:

Post a Comment