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

Username:   Password: 
 RegisterRegister   
 Making an image move
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
supaphreek




PostPosted: Sun Jan 23, 2011 1:46 pm   Post subject: Making an image move

Hi,

How would i go about loading an image, preferably a gif or a png and make it move up, sideways , left or right...

Thanks
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sun Jan 23, 2011 4:21 pm   Post subject: RE:Making an image move

Turing has functions to load images.

When you draw an image, you have to pass it a coordinate. Change the coordinate, and the image moves.
supaphreek




PostPosted: Sun Jan 23, 2011 9:04 pm   Post subject: RE:Making an image move

ah yeah Smile did a bit of searching on this and got the answer Very Happy

Thanks!
BigSams




PostPosted: Mon Jan 24, 2011 12:50 am   Post subject: Re: Making an image move

I didn't want to create a new topic but since this one is resolved and my question is related, here we go.
My program crashes. Very often. It may be because I'm moving around 4-9 jpegs at once. I think maybe they don't have enough time to load or something. Any advice on preventing crashing? Should I upload my code (it's 150 lines)? Perhaps vb6 was not designed for a fake-3d game...
Insectoid




PostPosted: Mon Jan 24, 2011 12:36 pm   Post subject: RE:Making an image move

Unless VB6 is really, really bad it probably has nothing to do with the number of images, but how you use them. Does it just stop working or does it actually crash and report something?
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: