SOUND* hits_snd = "mix1.wav";

function playSound()
{
snd_play(hits_snd,100,0);
}

action player_code()
{

on_u = playSound;

while(1)
{

if (key_u ==1)
{
ent_animate(my, "jump", anim_percentage, ANM_CYCLE); // play the "walk" animation
anim_percentage += 1 * time_step; // 8 = animation speed
}
wait(1);
}

}