Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello, the book does have some basic concepts about graphics (like how usually game engines have texture origins on the top left corner), but I'm not sure it will be able to give you a surefire solution to your problem.


I noticed that your example is missing the actual call to "crop_texture" at the end:

crop_texture(image_path, texture_rect, texture_rect_offset, output_path)

Did you forget to paste it, by any chance?


If any errors arise from that, I can try and give you some pointers.

(2 edits)

Yes. Thank you! I just started programming so I didnt even know there were pieces of the script missing. I have coordinates I found on Unity Explorer in Drova Forsaken Kin game but I was told it has to be flipped bottom left to locate specific character models in a png. I'm having issue from the very beginning of this script. FileNotFoundError is shown. Do you have discord by any chance? LONE5mpiraña is mine. Or it is lonesomepiran7a.

FilenotfoudError just means that Python cannot find a file you're trying to open (probably the image file) from where you're executing the script (the script and image file should be in the same folder to work as written).


Considering you're just starting your programming journey I can suggest these books from the great Al Sweigart:

https://inventwithpython.com/invent4thed/

- https://inventwithpython.com/pygame/

They're great material. (The entire collection is a goldmine, free to read online)

For the discord, i humbly apologize but I prefer not give it away. Although I'm more than willing to help to any extent possible either here or on GitHub's discussions.

No worries. Thank you for pointing me in the right directions. #blessed