Computer Science Canada Importing a picture and using it in an Animation? |
| Author: | revangrey [ Fri Jan 02, 2009 8:04 pm ] | ||
| Post subject: | Importing a picture and using it in an Animation? | ||
now I am trying to place a picture in an animation and make that picture move I was thinking of a Santa in a sleigh making a run across the screen sort of thing but before I can do that I need to import a picture, .jpg preferably not those other random things turing supports... This is what I got from the picture importing thread, by Dan I believe
Any and ALL help is appreciated thanks in advance! |
|||
| Author: | Tony [ Fri Jan 02, 2009 8:14 pm ] |
| Post subject: | RE:Importing a picture and using it in an Animation? |
importing and using an image of any supported type works the same way. |
|
| Author: | Insectoid [ Fri Jan 02, 2009 8:16 pm ] | ||||
| Post subject: | RE:Importing a picture and using it in an Animation? | ||||
Put the image into the folder your code is contained in. That way you don't have to type the whole directory.
I don't know if Turing does this, but many languages use the backslash ('\') as an escape character, meaning it does things to the string Another thing, if you create the picture when you initialize the variable, you don't need :int. You can just do:
Either should work. |
|||||
| Author: | revangrey [ Fri Jan 02, 2009 8:16 pm ] |
| Post subject: | Re: Importing a picture and using it in an Animation? |
ARGH didnt see you post that sry. |
|