Can somebody give me a piece of coding which i can make a character moving in the background?
What you want is the cCharacter.Walk, although more information can be found in the manual.
~Trent
[edit]: Oops, Densming is right, it's Walk.... :-\
Look at Character.Walk, and you can specify the eNoBlock parameter to allow scripting to continue while the character is walking.