Flash components › Flash files › Games
Pong Star Trek Computer Design
|
Posted on 2009 Jun 03 |
:P nice but if I play multiplayer and start and leave the 2 panels unmoved the ball will begin to gain speed and after some seconds it will jump out of screen trough one of the pannels.
|
Posted on 2009 Jun 03 |
To bgaby88:
This is a counter in the programming code that easly can be fixed to your setting. By saying:
if (counter < 10){
counter ++;
} else {
//nothing
}
Now the speed can't get higher then 10 f. exa.
Thanks for telling me though, I will update the file.
This is a counter in the programming code that easly can be fixed to your setting. By saying:
if (counter < 10){
counter ++;
} else {
//nothing
}
Now the speed can't get higher then 10 f. exa.
Thanks for telling me though, I will update the file.
|
Posted on 2009 Jun 03 |
The solution is to add:
if (ballDX > -0.7){
ballDX *= -1.1;
} else {
ballDX *= -1;
}
at line 235 in PongGame2Player. I can't upload a newer version it seem.
if (ballDX > -0.7){
ballDX *= -1.1;
} else {
ballDX *= -1;
}
at line 235 in PongGame2Player. I can't upload a newer version it seem.















This how this pong game runs: there are 2 games in here, the link to their Action Script documents are the movie clips: "PongGame"(Frame 2) and "PongGame2Player"(Frame 5).
Button and highscore scripts are in the flash file. The games themself are at the AS3 document linked through the MovieClips "PongGame"(Frame 2) and "PongGame2Player"(Frame 5).
I have tried to give variables logical names so they are easy to find. Norwegian words can happen, sorry about that.
If you are creative you can use this code to make a breakout game
How would Pong been made on a Star Trek pad? Maybe like this. Have a look.