Hi guys,
I've met problems in my way of writing codes with lite-C .btw, I am a rookie in lite-C.
1. How to make an entity like guard walk with a step sound, that is, every step are followed by a 'tata' sound. I have made it this way, but the effect after compiling is really unsatisfactory:

action walking()
{
guard = my;
while (1)
{
...
if (key_w)
{
c_move (my, vector(3*time_step, 0, 0), nullvector, GLIDE);
ent_animate(my,"walk",walk_percentage, ANM_CYCLE);
walk_percentage += 5 * time_step;
play_sound(); //Play a step sound
}
...
}
}
2. I want to play a sound in a function, but I was so puzzled that the function "media_play" can work but "snd_play" can't play any sound. For instance,here is what I wrote:
function play_sound()
{
media_play(step_sound, NULL, 80); //OK!
// snd_play(step_sound, 80, 0); //Can't work anyway, the parameters passed to it are no problem.
}
3. What are the differences between toggle() and set() while setting the flag of a object?
4. Where cound I download the codes and files such as .WMP and .C that are referred to in the content of AUM? (There are some quite good code examples in the colume of 'workshop', but they are splitted in the articles:( )

Thanks a lot for your patience of reading so many problems and helping me!
Best regards!