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

Username:   Password: 
 RegisterRegister   
 Animation on Imported Image
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
308989961




PostPosted: Tue Jan 01, 2013 3:40 pm   Post subject: Animation on Imported Image

I want to have a dog that I import move across the screen. However, there are a couple of things I am unsure of how to do.

1) How do I make it so that there's no white background that comes from the jpeg?
2) how would i move it? I know how to do this sort of animation with stuff that I draw on turing, but not with imported images.

Thanks so much!
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Tue Jan 01, 2013 3:56 pm   Post subject: RE:Animation on Imported Image

Animating an imported image is exactly the same as animating anything else.

Removing the white background is exactly the same as explained in your other thread. You'll probably have to change the jpeg to a bmp and edit the image a bit for it to work properly.

You were worried about wasting my time in your first thread. My time was not wasted. However, now you're asking exactly the same questions all over again. That is wasting my time.
308989961




PostPosted: Wed Jan 02, 2013 11:14 am   Post subject: Re: Animation on Imported Image

Thank you.

Please don't be rude, you weren't clear the first time.
jky09




PostPosted: Thu Jan 10, 2013 5:44 pm   Post subject: Re: Animation on Imported Image

There's a difference between being rude and stating the fact.
GuCCIP




PostPosted: Thu Jan 10, 2013 6:53 pm   Post subject: Re: Animation on Imported Image

You can animate it on turing using drawfill commands and using +x or -x. This depends in what direction you want it to move, and the +x, -x is used inside in the drawfillcommand ex: drawfillbox (0+x,100,100+x,200,black). remember this will move in a for loop, ex: for x : 1..100 end for.

And to make it move without the black that goes with it moving just make another of the drawfill command but this time with the color white (or the background color you have) and making it smaller it one pixel smaller.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: