Posted: Thu Sep 28, 2006 3:37 pm Post subject: Images not showing up
Okay so today we were supposed to hand in our first sumative project electronicaly. The problem was that when the teacher tried to make the programs the images didn't want to show up does anyone know what's wrong?
Sponsor Sponsor
Silent Avenger
Posted: Thu Sep 28, 2006 3:41 pm Post subject: (No subject)
Are you by any chance loading pictures using code?
RGB255
Posted: Thu Sep 28, 2006 3:44 pm Post subject: (No subject)
Umm yes I think most of the people in my class are. Why is that a problem?
[Gandalf]
Posted: Thu Sep 28, 2006 3:47 pm Post subject: (No subject)
Did you include the pictures with the source code when you submitted?
Silent Avenger
Posted: Thu Sep 28, 2006 3:52 pm Post subject: (No subject)
Yes it is a problem. When you use the image.picture = loadpicture(image path) or other similar code you are specifically identifying the location. Therefore, if you hand it in electronically along with the picture the program will still want to search for the picture using the same directory and the teacher will most likely not have the picture in the same location as on your accounts. So, I suggest for you to put the pictures in a folder along with your program when you hand it in and use the following code:
Posted: Thu Sep 28, 2006 4:03 pm Post subject: (No subject)
Yes I'm 120% sure that will work. My grade 10 class had the same problem while making a frogger game and the App.path fixed the problem. Just make sure your images are in the same location as your source code and it'll work. I'm sure there are other ways but I've always used the App.path method.
RGB255
Posted: Thu Sep 28, 2006 4:08 pm Post subject: (No subject)
Well thanks once again Silent Avenger.
Sponsor Sponsor
Silent Avenger
Posted: Thu Sep 28, 2006 4:13 pm Post subject: (No subject)