I deleted a lot of your code, but what I wrote should work like you expect. SPANIM is a command you should look into. In your original program, you were using both SPSET and WAIT for each iteration where SPANIM combines the two. I also included animation for walking the opposite direction.

プレイ済み