Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
General Discussion

Need help seperating pictures

dboxall123
Tuesday, July 23, 2013 - 04:22
dboxall123's picture

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

  • Log in or register to post comments
Buch
joined 14 years 12 months ago
Tuesday, July 23, 2013 - 04:54
Buch's picture

Well, the easy way would be opening the images with Photoshop or Gimp or any other image editing program and manually crop them.


  • Log in or register to post comments
riidom
joined 15 years 5 months ago
Tuesday, July 23, 2013 - 06:16

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.

 

 

  • Log in or register to post comments
Flip_Industries
joined 12 years 1 month ago
Tuesday, July 23, 2013 - 06:59
Flip_Industries's picture

Could give this a try

 

http://renderhjs.net/shoebox/extractSprites.htm

 

  • Log in or register to post comments