Webplayer : https://dl.dropbox.com/u/56545886/Pong/Pong.html ctrls Use mouse left click and hold, move mouse
I have a clock set to 20 seconds to countdown to 0 and then it will load next level. That part works but I don’t know to make it appear on the game screen. This is my 3rd day with Javascript and really game programming. Anyone have a solution? Thanks
var TimeRemaining:float;
var TimeStart:float;
function Start () {
TimeStart=20.0;
}
function Update () {
TimeRemaining=TimeRemaining-Time.deltaTime;
if(TimeRemaining<0){
Application.LoadLevel(Application.loadedLevel + 1);
}
Debug.Log(TimeRemaining);
}