First you would have to manually make a image file to contain each frame of the animation a example of what you want it to look like is below:
Then simply use this code:
dbPlaySprite ( int iSprite, int iStart, int iEnd, int iDelay )
Isprite is the number of the sprite that you created with that graphics file. iStart is the first part of the the animation you want to use. In your case this is proberly just 1. Then iEnd is the last part of the animation. So put the number of the last frame of your animation becouse i assume you want to play all of it.