How can I make my animation stop flicker!!!?!?!?
Can I do it in the same way as with DDRAW, where all the animations are done on the sec. buffer???
Could anyone give an example???

My code:
VB Code:
  1. Dim MovePic As Integer
  2. Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
  3.  
  4.  
  5.  
  6. Private Sub Timer1_Timer()
  7. Me.Cls
  8. 'Draws the mask with vbSrcAnd raster operation
  9. BitBlt Me.hdc, MovePic, 0, picMask.ScaleWidth, picMask.ScaleHeight, picMask.hdc, 0, 0, vbSrcAnd
  10. 'Draws the sprite witht the vbSrcPaint raster operation
  11. BitBlt Me.hdc, MovePic, 0, picSprite.ScaleWidth, picSprite.ScaleHeight, picSprite.hdc, 0, 0, vbSrcPaint
  12.  
  13. End Sub
  14.  
  15. Private Sub Timer2_Timer()
  16. MovePic = MovePic + 2
  17. End Sub