One way of doing that would be to use the following code, the images are numbered 1-10 in the walking sequence.
load image "1.bmp",1
load image "2.bmp",2
load image "3.bmp",3
load image "4.bmp",4
load image "5.bmp",5
load image "6.bmp",6
load image "7.bmp",7
load image "8.bmp",8
load image "9.bmp",9
load image "10.bmp",10
do
walk=walk+1
if walk=11 then walk=1
sprite 1,x,y,walk
sync
loop
You could change the walking speed by changeing the:
walk=walk+1
code into:
walk=walk+0.5
which would make him walk at 1/2 speed.
Hope this helps,
Mog.
E-mail or call me on msn if you need any help @
[email protected]
Life is like a hot bath, the longer you're in it, the more wrinkles you get.