|
|
|
#1 |
|
Member
Join Date: May 2002
Posts: 90
|
Lots of MCs, lots of frustration!
I'm writing a small simulation that's dealing with a large number of small MCs that are dynamically created.
I also need to run a hitTest that checks whether any clip is in contact with any other clip.
proximity is a variable inside each instance of the character MC. The problem I have is that I need to create another function, Spawn, that creates another instance of the original character MC. The problem is, I don't know the best way to assign a name and depth to the newly created MC considering that some of the MCs will be deleted based on their own code. Can someone suggest a way of storing the identity of the created movie clips? I considered using an array to store the IDs of the instances, but everytime a new clip is created, the array will end up getting bigger and bigger, and the scanning of that array will end up slowing the whole processing down.
__________________
|
|
|
|
|
|
#2 |
|
Qwaizang:syntax_entity_
Join Date: Aug 2005
Posts: 270
|
I'm confused. Is a new clip created when two clips touch (hitTest)? Is an existing clip deleted when two clips touch? Are there more than 100 clips in total or is this the maximum allowed?
More details, please. +Q__ |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|