I'm sure this is childsplay to the rest of you, but for the life of me I cannot get this to work. I've tried several different versions of scripting this, but the sound plays once and stops.
So the thing is, I have probes with electricity flowing between them. I have a "bzzz" sound that I want played as long as this object is animating and then stops once the objects stops animating.
From rep_exec:
Code: ags
That was the last bit of code I tried, which was a LAST RESORT idea, after several attempts. I'm too frustrated right now to rewrite all the different tries I did.
If you could plese point me in the right direction and tell me what I'm NOT doing, it will be MUCH appreciated.
So the thing is, I have probes with electricity flowing between them. I have a "bzzz" sound that I want played as long as this object is animating and then stops once the objects stops animating.
From rep_exec:
if ((IsSoundPlaying()==0)&&(object[9].Animating==true)){
PlaySound(11);
}
That was the last bit of code I tried, which was a LAST RESORT idea, after several attempts. I'm too frustrated right now to rewrite all the different tries I did.
If you could plese point me in the right direction and tell me what I'm NOT doing, it will be MUCH appreciated.