I have check the Sprite_example_1
I have add the code to move the sprites
no flicker...no problem...
that because there arent any refesh rate code in there.
/*
Sample from the users guide showing how to animate a sprite
The bitmap file "mouth.bmp" must be located in the same
directory as the compiled executable
Requires EBASIC 1.0 or greater and the 2D command set
*/
DEF M:INT
speed = 0
Frame = 0
Change = 0
'Create a screen
IF CREATESCREEN( 640, 480, 32) < 0
MESSAGEBOX 0,"Error creating screen","error"
END
ENDIF
'Load the sprite
sprite = LoadSprite(GETSTARTPATH + "mouth.bmp",0 ,0 ,3)
IF sprite <> NULL
'Set the sprites drawing mode to transparent and specify a mask color
SpriteDrawMode sprite,@TRANS
SpriteMaskColor sprite,RGB(87,87,87)
'The main loop
DO
FILLSCREEN RGB(0, 0, 255)
WRITETEXT 0, 0, "Press ESC to close"
change++
IF change > (speed / 4)
frame++
IF frame > 2 THEN frame = 0
change = 0
ENDIF
'Set the sprites image frame and draw the sprite
SpriteFrame sprite, frame
'DrawSpriteXY sprite, 320+M, 240
MOVESPRITE SPRITE, M, 17
DRAWSPRITE SPRITE
speed = FLIP
M=M+1
'continue until ESCape is pressed
UNTIL KEYDOWN(1)
FREESPRITE sprite
ENDIF
CLOSESCREEN
END
so the only problem I having is SMASHOUT CODE. what your monitor refresh rate?