Computer Science Canada Help with picture location in folders |
Author: | shadowNET [ Mon Sep 10, 2012 6:21 pm ] |
Post subject: | Help with picture location in folders |
Hello i wanted to know if anyone could help me with this, im working on my final project in advanced and im using some jpeg imports, i wanted to know if there is anyway to have the jpegs in another folder then the .t file an example of what im looking for is shown below, please reply with some commands or code thanks! ![]() |
Author: | Tony [ Mon Sep 10, 2012 6:37 pm ] | ||
Post subject: | RE:Help with picture location in folders | ||
yes. You should use a relative path from the location of the turing file to the image. E.g. if your turing file is inside Game, but images are inside Images (spaces often introduce problems in folder names, so lets call it Images instead of "Where I want picture to go" for now), you'd load something like
where .. goes up one directory |
Author: | shadowNET [ Tue Sep 11, 2012 12:43 pm ] |
Post subject: | Re: Help with picture location in folders |
Thanks! i managed to get it working, and thanks for the warning about spaced folders, the only reason i gave that really long folder name was to ensure my point was getting across clearly |