I am working on a flash movie for a friend of mine that utilises random movement etc. The idea is that a number of objects randomly appear on the screen. There are three different types of objects, and I need 4 of each object to appear in a random location. After these items are on the screen, another object randomly moves around the screen and destroys them.
I need to create the initial random objects into some kind of array so I dont have to do a collision detection on every item. I have -NO- idea how to do this. secondly, when the large object collides with the smaller ones, the smaller one dissapears. Ideally once the objects have all been destroyed, ie when the array reaches 0, a whole new set of objects will appear.
Have a look at the movie below and you'll see what I mean. Its only small.
The movie and source code are available here:
Im really stuck with this, my background is in graphic design and coldfusion programming, so I'm finding actionscript fairly difficult. Please help!
__________________
Aaron
I need to create the initial random objects into some kind of array so I dont have to do a collision detection on every item. I have -NO- idea how to do this. secondly, when the large object collides with the smaller ones, the smaller one dissapears. Ideally once the objects have all been destroyed, ie when the array reaches 0, a whole new set of objects will appear.
Have a look at the movie below and you'll see what I mean. Its only small.
The movie and source code are available here:
Im really stuck with this, my background is in graphic design and coldfusion programming, so I'm finding actionscript fairly difficult. Please help!
__________________
Aaron