| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Addicted To FLASH
|
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
__________________
â€* GOD Is Near â€* Questions Don't PM for Questions An eye for an eye, make the whole world blind _____________________________________________GHANDI |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
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.
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Card Match Game, Colour Me In Pictures and Board Game | Total Frigging | ActionScript 2.0 | 4 | 02-21-2005 01:04 AM |
| word search game with AS2 | black | General Chat | 5 | 08-12-2004 10:44 AM |
| [AS2] Tile game or not tile game? | krolben | Gaming and Game Development | 4 | 07-28-2004 01:41 PM |
| Game - freelancer required | fatherb | Projects and Positions | 6 | 07-18-2003 12:47 PM |