Computer Science Canada Animation help please |
Author: | enimirahi [ Thu Apr 16, 2009 7:22 pm ] |
Post subject: | Animation help please |
SO first I want the image of this dog here http://www.flickr.com/photos/jurica/78004956/ and later i want the dog to move its head faceing the moniter once and looking the way its looking no twice and i wantit to repeat doing that but i'm haveing trubble getting this image on to a new turing file is this supposed to be used somehow if so how? var picID : int var x,y : int picID := Pic.FileNew ("whatever.bmp") for i : 1..50 Pic.Draw (picID, x, y, picCopy) end for Pic.Free (picID) |
Author: | enimirahi [ Thu Apr 16, 2009 7:40 pm ] |
Post subject: | RE:Animation help please |
cuz my teacher had created a file like that and showed it to the class but never realy fully explained how he did it. his was with a cats picture and the cats head movied left and right |
Author: | BigBear [ Thu Apr 16, 2009 7:46 pm ] |
Post subject: | RE:Animation help please |
a for loop or counted loop will repeat a section of code and make the variable i in this case take the values of 1 to 50 so if you put the picture at Pic.Draw (picID, i, i, picCopy) it will move around the screen |
Author: | enimirahi [ Thu Apr 16, 2009 7:49 pm ] |
Post subject: | RE:Animation help please |
but how do i get that picture in that code i just dont understand that |
Author: | Dan [ Thu Apr 16, 2009 7:49 pm ] |
Post subject: | RE:Animation help please |
Well it's imposable to move the dogs head like that unless you have another image with it moved or you make another image in photoshop of it moved and use that. You can move the hole image around the screen and add efects to it but you can't easly edit it such that the dog is in new pose. |
Author: | andrew. [ Thu Apr 16, 2009 7:50 pm ] |
Post subject: | RE:Animation help please |
You can use a program like Paint or Photoshop to make a second picture with the dog's head facing away. Then all you have to do is show the picture with the dog facing away and then wait a second then change to the picture of the dog facing towards you. This means you have to have 2 images; one of the dog facing you and one without. Just load the two pictures and show them one after another. Tip: It helps a lot to write it all down on paper first. |
Author: | enimirahi [ Thu Apr 16, 2009 7:51 pm ] |
Post subject: | RE:Animation help please |
like dont you have to take that picture put it in a turing file and later use it to make the animation. Because, like if i copy and pase the image to a turing file it doesn't work or am i just doing it wrong |
Author: | enimirahi [ Thu Apr 16, 2009 7:52 pm ] |
Post subject: | RE:Animation help please |
oh ok 2 images i didnt know that thanks |