PDA

View Full Version : Paddle Game


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

Jesse
02-08-2002, 08:48 AM
Have you tried setting the duplicate's visibility back to true? Since you're duplicating an invisible clip, the duplicate is likely to inherit the properties of it's parent, and be invisible too.