First off, there are some MAJOR bugs with animated sprites, specially the PLAY SPRITE command. see here: (
http://www.thegamecreators.com/?m=forum_view&t=15999&b=15)
Best bet for now until bug is fixed is to have an extra frame and make first frame blank. You can then set frame to first 'proper' frame and play rest of frames.
Following code will make a 90 * 30 bitmap which is 3 frames side by side. frame1 is blank, frame2 is small circle, frame3 is big circle.
It will play last two frames with interval at half a second
sync on : sync rate 0
` create a 2 frame anim
ink rgb(255,255,255),0
f$="animsprite.bmp"
circle 45,15,5
circle 75,15,10
get image 1,0,0,90,30,1
if file exist(f$)=1 then delete file f$
save image f$,1
delete image 1
create animated sprite 1,f$,3,1,1
sprite 1,50,50,1
set sprite frame 1,1
do
play sprite 1,1,2,500
sync
loop
If your mansion house needs haunting, just call Rentaghost!