henrik25
03-14-2003, 11:20 AM
Hi.
My first (of many i guess) mail here :-)
I have made a small pingpong game. It have 2 frames. The intro game on frame 1, and the game itself on frame 2.
When the player or the computer scores 3 points, i want the game to go back to the intro screen at frame 1.
Here is the code i wanna use for that
onClipEvent ( enterFrame ){
if (_root.player1Score > 1)
{
gotoAndPlay(1);
stop();
}
But the games just keeps playing. It dosent go back to frame 1. I have tryed setting in a trace("test") to see if i captured the event. And i do.
In frame i have all my parameter inits, and a stop() command. Anyone know what im doing wrong ?
Say if you wanna see my code...
My first (of many i guess) mail here :-)
I have made a small pingpong game. It have 2 frames. The intro game on frame 1, and the game itself on frame 2.
When the player or the computer scores 3 points, i want the game to go back to the intro screen at frame 1.
Here is the code i wanna use for that
onClipEvent ( enterFrame ){
if (_root.player1Score > 1)
{
gotoAndPlay(1);
stop();
}
But the games just keeps playing. It dosent go back to frame 1. I have tryed setting in a trace("test") to see if i captured the event. And i do.
In frame i have all my parameter inits, and a stop() command. Anyone know what im doing wrong ?
Say if you wanna see my code...