I use that:
sync on : sync rate 0
rem the images, u can cut them from 1 image if u like
load image "ball1.png",1,1
load image "ball2.png",2,1
load image "ball3.png",3,1
rem set image number to first image
img=1
rem main loop
do
cls
rem put the sprite
sprite 1,500,500,img
rem jump if asked
if spacekey()=1 then jump=1
rem show jumping animation if jumped
if jump=1
rem when it reaches the end renew the image disable the jump and reset the counter
if imgcount=30
imgcount=0
jump=0
img=1
endif
rem inc counter
inc imgcount,1
rem check for animation stages
if imgcount>0 then img=1
if imgcount>10 then img=2
if imgcount>20 then img=3
endif
sync
loop
i have'nt tested the above code but it should work using seperate images if u want me to show u how to cut em from 1 just post a messege.
hope ive helped...
lol?! xD