Or, move the other behaviors you want to keep going to other functions. I.e.:

You probably have:
Code:
function enemy() {

... your animation code here ...
... some other stuff here ...
wait(-integer(random(10))); // so this stops everything that this function is doing
}



Try moving your animation code and your other code to other functions, and the engine's multitasking should kick in.

Code:
function enemy_animate()
{
...your animation code here...
}

function enemy_otherstuff()
{
...other code here...
}

function enemy() {
enemy_animate();
enemy_otherstuff();
wait(-integer(random(10))); // now I'm pretty sure the other functions will continue to run
}



Give it a try?