Need help seperating pictures
Hello all. I'm new to this site, and fairly new to programming too (I started learning python about a month ago and pygame last week). Anyway, tis may be a really stupid question but I've just downloaded some cars and trucks pics, but when I open them they're just all in one picture, not one truck in one file, truck 2 in another, etc. So how can I seperate them so that I can use one of the trucks as a sprite? Would really appreciate some help with this.
Thanks!
Dan
Well, the easy way would be opening the images with Photoshop or Gimp or any other image editing program and manually crop them.
alternatively you can use ImageMagick (it has ugly commandline parameters, you probably either want to study the docs carefully, or hunt for a snippet that does what you want, after you adjustes values like tilesize etc)
or.. you check pygame doc, if there is a way to just use a certain square from such a tilesheet. In the long run, this is the more elegant solution. I dunno python or pygame, so I cant give you a hint here, but I think it is possible it can do that.
Could give this a try
http://renderhjs.net/shoebox/extractSprites.htm