I'm at a loss here, I'm desperately trying to get the game to increase the point score by 1 for every 2 seconds that pass that the character avatar is moving, and to decrease by 1 point for every 2 seconds he is not moving.
The tutorial book I'm reading gives me no hints on how to so much as cause Text GUI's to change in appearance (EG: to start as reading: 0, then changing to 1, then 2, then 3 and so on and so forth when conditions are met)
I have a general idea on how the structure of the code would work, I'd need to call upon the scripts for character movement so that when the conditions for moving are met then so are the conditions for increasing point score, and when they aren't met, then the score decreases.
Once that's called upon it'd be something like
function Update () { if (movement=true){ pointscore= pointscore+1; text=pointscore; }
else{ pointscore= pointscore=1; text=pointscore; } }
can somebody tell me how to get this to work?