Ask coding questions

← Back to all posts
pygame.transform.chop issues
tankerguy1917 (174)

I am trying to get multiple images from one image, a tileset, using pygame.transform.chop. What the code is suppose to do is take the first square, which is locates at 1,1 in the image, go 16 pixels to the left and 16 pixels down, cut out the tile, and then display, it, or at least thats what I am trying to get it to do.

Comments
hotnewtop
novaflippers (62)

Hi there! May I know what is the error you are having? Thanks!

novaflippers (62)

@tankerguy1917 What is the issue? Like what do you need help with? I only fix problems, not write code

tankerguy1917 (174)

@novaflippers I need help figuring out how to "cut out" the right portion of the image and then be able to display it.