ok, i got a game with balls falling, and u have to get them to fall into the hoop… and where do i post the AS code… i have Flash 8 pro
this is the code places on the MC of the hoop
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
this.gotoAndStop(2);
this._x -= 10;
_xscale = 100;
} else if (Key.isDown(Key.RIGHT)) {
this.gotoAndStop(2);
this._x += 10;
_xscale = -100;
} else {
gotoAndStop(1);
}
}
onClipEvent (load) {
maximumBottom = Stage.height;
minimumLeft = 0;
maximumRight = Stage.width;
minimumTop = 0;
}
onClipEvent (enterFrame) {
if (this._x<minimumLeft) {
this._x = minimumLeft;
} else if (this._x>maximumRight) {
this._x = maximumRight;
}
if (this._y<minimumTop) {
this._y = minimumTop;
} else if (this._y>maximumBottom) {
this._y = maximumBottom;
}
}
thts for moving left and right, anda kinda hitTest with the FRAMES boundries… sense i jst want left and right… i could get raid of Ys right
ok… i got 10diff kinds of balls… i want them to fall at random times, places< from a stright line fromt the top…>… then when they hit the hoop… (disappear)