Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Bounding Box + Ball
Author: Fraggs
| Website: http://www.adeptdesigns.co.uk |
With our nice newly created clip, open the actions panel, then copy and paste the following code into it. I will explain what all the parts do afterwards.
onClipEvent(load){
speedx += 5;
speedy += 5;
}
onClipEvent(enterFrame){
this._x = speedx;
if (this._x>= 585) {
speedx = -speedx;
} else if (this._x <= 15) {
speedx = -speedx;
}
this._y = speedy;
if (this._y>= 385) {
speedy = -speedy;
} else if (this._y <= 15) {
speedy = -speedy;
}
}
| » Level Basic |
|
|
Added: : 2004-07-20
Rating: 4.44 Votes: 9
Hits: 900
|
| » Author |
|
n/a
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (0 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|