
Welcome Guest
|
#1
|
|||
|
|||
|
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 |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |





