making multiple copies of sprites

3 posts

Flag Post

Ok, fairly new to programming, have picked up a fair bit but have this problem I’ve been trying to solve: have tied “attachMovie” to a press of a space bar, which works fine and the object I’m creating has it’s own class file, but when a second object is created the first disappears, so that’s the problem how do you create multiple copies like that, and have them all stay on screen? (A hint or strategy should be plenty)

 
Flag Post

You’re probably attaching them at the same depth. For the “depth” parameter, use (wherever you’re attaching to).getNextHighestDepth() (or an alternative system).

 
Flag Post

Thanks for that, it worked. Had tried it at one point, but put it together with a loop and it’s working the way I want it now.