PDA

View Full Version : help on my little game.


omega10mg
05-01-2003, 11:58 AM
okey.. so i'm making this little neat game, and i need some help making a score system...

check the game here: http://www.notanotherwebsite.tk/
(its the little thing at the right, plz tell me what you think also)

so, how do i make some score.. i want one best score and one score for last round.

the last round should be erased every time u start over.
and best score only need to be saved untill u stop play (when u leave the site)

the game works like this:

on the block MC (the thing you collide with and explode):


onClipEvent (enterFrame) {
if (this.hitTest(_root.craft)) {
tellTarget ("_root.craft") {
gotoAndPlay(20);
}
}
}

then, frame 20 is played in the spececraft MC.
and then this happens in the spacecraft MC:


_root.gotoAndPlay(1);

this takes the game to the start, and u can try again. it's that simple...

now.. how do i make a score conter go one point up every, let's say 200 millisecond? and how do i save the best score each play in a diffrent text box.

I need much help here.. not just one line of code.. becuse i ahve a hard time understanding this.. and i would be very greatfull if anyone helped me =))

Ricod
05-01-2003, 12:38 PM
[crosspost]
other post : http://www.actionscript.org/forums/showthread.php3?s=&postid=126755#post126755