Search tutorials
To start off, make 2 layers, actions and everything else. To begin, make a keyframe on the first three frames of the action layer. On the first frame, insert this actionscript:
xspeed=10;
yspeed=10;
On the third Key frame insert:
gotoAndPlay(2);
Now make a paddle on the bottom of the screen and convert it to a movieclip and give it the instance name paddle. Also make a ball and convert it to a movie clip called ball, put it in the middle of the screen. On the paddle insert this actionscript:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x-=10;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_x+=10;
}
}
| » Level Intermediate |
|
Added: 2004-09-15 Rating: 5.79 Votes: 24 |
| » Author |
| Use this tutorial to make a game like breakout or pong, i have a version of pong on my cheap as free website, check it out |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!