Hi,

I dont know if this is the cause but this part looks suspicious:

Code:
while (1)
{
.............other code here
if(mouse_left){
on_mouse_left = mouse_leftsound;
var freq = ++300;
snd_tune(mouse_leftsound,100,freq,0);
}
.............other code here
wait(1);
}



Placing in a while loop on_mouse_left = mouse_leftsound; looks a bit weird I think. Second shouldn't var freq = ++300; be var freq += 300; ? (dont know if that really matters though)
Finally, snd_loop(engine_sound,100,0); has no handle, which you need for snd_tune I think. This last one is why I think you get the crash and your bug.

Last edited by Reconnoiter; 04/26/16 11:23.