Pages

Tuesday, 27 December 2016

Making the title prompt work

I wanted a title screen for the app as I think it gives a nice introduction to the app and allow people to get ready to start engaging at their own pace. I'd created a title sequence as a PNG sequence but was unsure how to get the app to start with it. I looked into the UI features of unity to create a clickable button but I liked the idea of keeping the app entirely controlled via the keyboard.

After looking in Monodevelop I realised that the whole app started with a "void Start()" statement which triggered anything within its brackets upon loading the app. I put the title image sequence in these brackets as an if statement like all the other clips however the if statement was just if title sequence isn't playing make it play and then added an else if statement which allowed users to exit the title sequence to use the app using the enter key.

No comments:

Post a Comment