PDA

View Full Version : [AS2] Entire stage vanishes


cabbageking4
09-17-2009, 11:11 PM
Around a minute into my game, everything that was attached to the stage with_root.attachMovie("name","name"+_root.getNextHighestDepth(),_root.getNextHighestD epth()) in the onLoad event and just placed on the stage in the editor goes invisible, but is still functioning, as far as i can tell.

The game attaches a (comparativly) large number of new objects onto the stage with the above function after creation such as enemys and particle effects, but once everything disappears, only things that have been attached after the initial onLoad event remain visible. Is this some sort of depth issues?

I have done many tests, and its always the same time that it happens. The number of particles and enemys created does not effect the time... but removing them alltogether causes the stage to remain visible.

I (think) i have isolated the problem to the creation or functioning of the enemys, so if you want the code (its messy as hell, poor var names, very little comments) just say. Please ask questions or suggest tests if you need more info.

Thanks ;)

note to self: dont talk about enemys, or games. you'll get moved. -_-'