i've posted this kinda code in tutorials a while ago myself..
only was made for stepsounds, but i said it could be used for these kinda things indeed as well..

looks good (Y)

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/