Quantcast
Viewing all articles
Browse latest Browse all 215

troubles with changing scenes

hellooo, i'm having a little problem with switching scenes on my game, what im doing is trying to make a playable tutorial, there are some visuals on the screen telling you to press 'a' and i want it so that when you press 'a' , the game waits 3 seconds before loading the next scene, here is the code i've made and there are no errors but the game simply does not move to the next screen. #pragma strict function Start () { if (Input.GetKeyDown("a"))//pressing the a key loads the game level, { yield WaitForSeconds (3); Application.LoadLevel ("tutorial2"); } } function Update () { }

Viewing all articles
Browse latest Browse all 215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>