So in order to get an image such as a '4:3' painting to animate properly in game, it needs to be first stretched then resized as follows. for images where 'a' is larger than 'b', things get tricky Now that image should animate and look right instead of stretched. Stretch the x-axis of the animation image to the NEW_X size of pixels, keeping the y-axis the same.Take the size of the y-axis in pixels divided by the number of frames (this gives you the size you need to stretch the x-axis), let's call this NEW_X. ![]() ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |