PDA

View Full Version : Game over Score Screen


Xionraseri
03-13-2008, 11:55 PM
When my game ends, how do I make the score show in the game over screen?

Bombdogs
03-14-2008, 10:59 AM
This is one of those questions that really puzzles me... if you've managed to make a flash game, then surely you know how to display a score :confused:

You simply need a variable to keep track of the score & a textfield to display it in...

scoreDisplayTextfield.text = score;

PMF

Xionraseri
03-14-2008, 12:40 PM
Well, somehow I managed to skip that piece of info, and it didnt work.

I tried

scoreDisplayTextfield.text = monster.points;

making a dynamic text box in the game over screen w/ the var score
and the dynamic text box in the game has the var monster.points.
what did I do wrong?

bluemagica
03-14-2008, 05:33 PM
Yep, you are puzzling me...

if you are going to call the monster.points variable, then why did you set the variable to score?? and also, as far as i remember, if you are going to set the text via script, then there is no need for putting a variable in the textbox at all....
And, well, are you being able to show the score during the game? if yes, then it is the same procedure to put the score on game end screen.

neilmmm
03-14-2008, 06:25 PM
i think the confusion lies in Bombdogs naming his textfield which is better

and Xionraseri is using older approach and using the Var in the text tool properties

Xionraseri
03-14-2008, 09:57 PM
Thanks for the help guys, it works now. And yea...I am a noob at programming incase you havent guessed already:p