havock
November 30th, 2004, 07:51 PM
Alright I got my game to work after a while and decided to add some UFO's in the background floating. I wanted them to just float down the screen so I used the snow tutorial and exchanged it with UFO's rather than...snow. Now my problem is, how do I make the UFO's in the background? They overlap whenever they fly over anything even though the movie clip is on the back layer. Anyone know what's going on?
Also, how do I make the game go to a certain ending depending on the score? I tried but could not figure it out, it's sort of hard to describe so I'll attach the .fla. I was thinking this had a key to my question;
//check left wall
if ((x-ballRadius < leftWall) and passedPaddle) {
Mouse.show();
computerScore++;
if (numBalls == 0) {
gotoAndPlay("game over");
} else {
numBalls--;
gotoAndPlay("start level");
}
}
but then If then it would be the last side the last ball hit rather than the score. Sorry if this is way to vague, but if you want you can check the .fla .
Edit; seems the file is to big (144), I think you can download it here though http://s7.yousendit.com/d.aspx?id=1FEF577CE8D7DC93BD48647F6553A0E5
Also, how do I make the game go to a certain ending depending on the score? I tried but could not figure it out, it's sort of hard to describe so I'll attach the .fla. I was thinking this had a key to my question;
//check left wall
if ((x-ballRadius < leftWall) and passedPaddle) {
Mouse.show();
computerScore++;
if (numBalls == 0) {
gotoAndPlay("game over");
} else {
numBalls--;
gotoAndPlay("start level");
}
}
but then If then it would be the last side the last ball hit rather than the score. Sorry if this is way to vague, but if you want you can check the .fla .
Edit; seems the file is to big (144), I think you can download it here though http://s7.yousendit.com/d.aspx?id=1FEF577CE8D7DC93BD48647F6553A0E5