Computer Science Canada

help with pictures

Author:  Shyfire [ Tue Apr 19, 2005 10:16 am ]
Post subject:  help with pictures

i this pacman game i downloaded the levels were saved in .plv format how do you draw a picture on the screen that is not a .bmp or .jpg Question

could someone please tell me how this is done Exclamation Exclamation Exclamation

Author:  jamonathin [ Tue Apr 19, 2005 10:57 am ]
Post subject: 

just open them up in paint and convert them to jpg or bmp.

Author:  Shyfire [ Wed Apr 20, 2005 8:40 am ]
Post subject: 

still doesn't answer my question Evil or Very Mad Exclamation Exclamation


but thx for trying

Author:  Martin [ Wed Apr 20, 2005 9:06 am ]
Post subject: 

What is .plv? Just an image file? Or is it an actual pacman map. In the latter case, what you'd have to do is figure out what format the file is in and read that.

Author:  [Gandalf] [ Thu Apr 21, 2005 1:44 am ]
Post subject: 

.plv
hmmm .pacmanlevel?

It's probably just some random format which the person used. Try opening it up with paint (or photoshop/psp) and wordpad. There is a big chance that this .plv file is not an image... If none of those work properly, then you might have trouble finding the proper program to edit/open that kind of file. Still, I usually find that opening something up in wordpad helps in any case Smile

Author:  StarGateSG-1 [ Thu Apr 21, 2005 7:40 am ]
Post subject: 

Turing doesn't handle support for many file extensions, try and stick with bmp, jpeg, gif. Other than that there are picture converting programs out there.

Author:  jamonathin [ Thu Apr 21, 2005 7:50 am ]
Post subject: 

Last time I checked, turing doesn't support .gif files either.

Author:  *fourstar [ Sat Apr 23, 2005 8:24 pm ]
Post subject: 

while we're still on the topic of pictures, i need help. You see i've looked on the tutorials on this site on how to upload pictures and such, but when i've tried to copy the coding and put in my own files names it still doesn't work. It says "ILLEGAL PICTURE ID number '0'. (Probable cause: picture was not succesfully created.)"

This is my coding i took most of the coding from the tutorial because i thought it was right, but it wont work for me, can someone help me?

var pic :int := Pic.FileNew ("mypic.bmp")
Pic.Draw (pic, maxx div 2, maxy div 2, 0)

Author:  jamonathin [ Mon Apr 25, 2005 5:42 am ]
Post subject: 

It's because you're picture isn't in the right spot. If you're just going to put ("mypic.bmp") then you're picture must be in turing's default folder (my documents, if your program is unsaved) or in whatever file your program is saved in.


: