farafiro
02-04-2002, 01:42 PM
Can anyone help:
Makin a paddle game (As the famouse DX Ball) and have this prob:
the ball called: ball
the paddle ....: paddle
the bottom side down the paddle: bottom
and trying to put this code to make the "BALL" when hits the "bottom", disappears and to be dup to another _x, and _y but it stick - after dup to - the "bottom", donno y ???
here is the code (it's on the "ball" MC):
------------------------------
if (this.hitTest(_root.bottom)) {
this._visible = 0;
_root.lives = _root.lives-_root.counter;
this.duplicateMovieClip("ball"+_root.counter, counter);
setProperty ("ball"+_root.counter, _x, 162);
setProperty ("ball"+_root.counter, _y, 190);
counter ++
}
}
-----------------------------
Lives Is a dynamic text box
Makin a paddle game (As the famouse DX Ball) and have this prob:
the ball called: ball
the paddle ....: paddle
the bottom side down the paddle: bottom
and trying to put this code to make the "BALL" when hits the "bottom", disappears and to be dup to another _x, and _y but it stick - after dup to - the "bottom", donno y ???
here is the code (it's on the "ball" MC):
------------------------------
if (this.hitTest(_root.bottom)) {
this._visible = 0;
_root.lives = _root.lives-_root.counter;
this.duplicateMovieClip("ball"+_root.counter, counter);
setProperty ("ball"+_root.counter, _x, 162);
setProperty ("ball"+_root.counter, _y, 190);
counter ++
}
}
-----------------------------
Lives Is a dynamic text box