ok i have a simple pickup item, i want a sound to play while this item is being picked up. but instead of just playing once it loops, i must have it wrong:

action Ring_illumi_pickup
{

while (player == null) {wait (1);}
my.passable = on;
while (vec_dist (player.x, my.x) > 100) {wait (1);}
my.invisible = on;
my.lightred = 255;
my.lightgreen = 0;
my.lightblue = 0;
while (1)
{
snd_play (creepsnd, 80, 0);
wait(-3);{
snd_stop (creepsnd);}
}

can you guys help me out?

and yes i have "sound creepsnd = <creepsnd.wav>;" at the top:P


Last edited by Doc_Savage; 02/10/10 03:35.

Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.