In my app I create a set of bad guys using a class.
When i create them as a still image everything runs fine; however when I replace the image with a movieclip I get a leak.
When they are created I use the code:
dude = movieclip.newAnim{ "zombie1.png", "zombie1.png", "zombie2.png", "zombie2.png", "zombie3.png", "zombie3.png" }
dude:play{ startFrame=1, endFrame=30, loop=0, remove=true }
dudes[#dudes+1] = dude
physics.addBody(dude, { isSensor = true })
They are moved by:
dude:removeSelf()
dude2=nil
dudes[i] = nil
Is there something I have to modify in the movieclip.lua file to remove them properly? [import]uid: 10903 topic_id: 7882 reply_id: 307882[/import]