I’m trying to create 1 texture out of 2, so I can assign a sprite to work as a clipping mask. The textures are both 32x32 pixels.
Here is the code I’m using to blend the textures together.
When I run this code I want the blended texture to matched up, and contain the full textures like this:
but instead, when I run it, parts of one texture is missing. They are also not aligned.
I have no idea what I’m doing wrong. Any help is appreciated. Thank you!
Can you make sure that the textures are the same size by printing the size? And also print out the “image2.get_used_rect()” to make sure its correct. And print the format with “.get_format()” since they need the same
I printed all of that out, and yeah they’re the same size and format. When I print “image2.get_used_rect()” I get: “[P: (6, 8), S: (20, 17)]”. Do you have any ideas of what I could be doing wrong?