
-----------------------------------
system4
Tue Apr 10, 2007 5:25 am

[Help][Blitz]Animated Images
-----------------------------------
Ok in the following code it loops the animating image, but I dont want it to loop... How do I go about without looping..

Graphics 640,480,16,2
SetBuffer BackBuffer()
lightsting=LoadAnimImage("powers/lightsting.bmp",256,256,0,20)
MaskImage lightsting,0,0,0
ScaleImage lightsting,2,2

While Not KeyHit(1)
	Cls 
	If MilliSecs() > tmrlightsting +25 Then 
		tmrlightsting=MilliSecs()
		frmlightsting=(frmlightsting + 1) Mod 20
	EndIf 
	DrawImage lightsting, MouseX, MouseY,frmlightsting
	Flip 
Wend

-----------------------------------
Cervantes
Tue Apr 10, 2007 10:45 am

RE:[Help][Blitz]Animated Images
-----------------------------------
You have a while loop in there. If you don't want to loop, you might consider removing the loop.

Or perhaps I'm not understanding you.

-----------------------------------
system4
Wed Apr 11, 2007 7:08 am

RE:[Help][Blitz]Animated Images
-----------------------------------
Lol... You might be right... I will try that... Thanks...!!! Perhaps I can make a function that I can execute...
