Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Bounding Box + Ball
Author: Fraggs
| Website: http://www.adeptdesigns.co.uk |
Now that we have the code in palce, a little explination is required I beleive :
onClipEvent(load){
speedx += 5;
speedy += 5;
}
This part creates the speed variables that our movie will use. You dont have to use variables, but it makes it easier to update the movie if you only need to change something once.
onClipEvent(enterFrame){
this._x = speedx;
if (this._x>= 585) {
speed._x = -speedx;
} else if (this._x <= 15) {
speed._x = -speedx;
}
| » Level Basic |
|
|
Added: : 2004-07-20
Rating: 4.44 Votes: 9
Hits: 904
|
| » 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.
|
|
|