Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [Help][Blitz]Animated Images
Index -> Programming, Visual Basic and Other Basics -> Other Basics
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
system4




PostPosted: Tue Apr 10, 2007 5:25 am   Post subject: [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
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Tue Apr 10, 2007 10:45 am   Post subject: 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




PostPosted: Wed Apr 11, 2007 7:08 am   Post subject: 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...
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Other Basics
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: