Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-04-2002, 02:42 PM   #1
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: EGYPT
Posts: 12,439
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Cool Paddle Game

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 . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 02-08-2002, 09:48 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 06:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.