I tweaked my code a little bit using a counter instead of the image index and it works better but it still stops after a bit..could be a call stack issue. make certain the sound isn't already playing.
count += 1;
if spd = walkspd then
{
if (count == 25)
{
count = 0;
if !audio_is_playing(snd_footstep)
{
audio_play_sound(snd_footstep,1,false);
}
}
}
else if spd = runspd
{
if (count == 15)
{
count = 0;
if !audio_is_playing(snd_footstep)
{
audio_play_sound(snd_footstep,1,false);
}
}
}