hmmm correct me if I am wrong, I tried this:
function hitBox(player, box)
{
box.play(‘breakBox’, false);
box.once(‘completeanimation’, destroyBox)
}
function destroyBox(player, box)
{
box.destroy();
}
but it did not work…, I assumed the once method will send over “player” and “box”.