LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-15-2005, 03:15 AM
MEAMYOu MEAMYOu is offline
Registered User
 
Join Date: Feb 2005
Posts: 25
Rep Power: 0
MEAMYOu is on a distinguished road
Falling Objects Question

I'm trying to create a game, in which a ball falls from the top of the screen to the bottom, and the player trys to catch the ball in a basket. However I have no clue how to make the ball duplicate itself. So i can have one ball fall at a time then maybe 2 at a time, then 3 at a time and so on. I also want these balls to fall at a random _x. I am currently using this code to move ball and give it a random _x.

The following Code is placed on the ball;
Actionscript:
onClipEvent (load) {
     _x = random(550);
 }

The Following code is placed on the first frame
Actionscript:
ball._y = ball._y+8;

i've tired
Actionscript:
j = j + 1
duplicateMovieClip(ball,ball + j, j);

but all that does is keep duplicating the movieclip and the new ones don't move
any help would be greatly appreciated.

it should be like the apple catch game at this site.
http://garyrosenzweig.com/books/book9.html

Last edited by Scottae : 07-15-2005 at 03:27 AM Reason: Format with AS tags
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Falling Objects vigge Flash CS3 / Flash 9 5 10-19-2008 09:21 AM
Question about Objects and Arrays Crown Flash CS3 / Flash 9 2 12-30-2007 09:06 PM
Flash Player debug - list objects question Bromid Flash CS3 / Flash 9 2 06-15-2007 03:54 PM
Banners items and falling objects flashgal Flash MX 3 02-08-2006 07:13 PM
Falling stacking objects terrible_tim Flash 5 Actionscript 0 12-09-2005 07:09 PM




All times are GMT. The time now is 03:49 PM.