DullShrimp129
Member
I am currently attempting to rotate a sprite using code to be pixel perfect. I initially simply rotated in an image editor and made its image_index = VPos(image_angle)/-7.2(50 images, 360 degrees, 360/7.2=50).
The issue with this is the amount of weapons in the game is to much and it slows GM having individual weapons each having an entire rotated set. I tried messing around with possible using the round() function but it image_angle never rounds correctly to a whole pixel, so how could you rotate an image without sub pixels?
(I understand GM actually scales out the amount of pixels to allow for smooth movement but i would like to have the room size remain the same due to the room editor.)
The issue with this is the amount of weapons in the game is to much and it slows GM having individual weapons each having an entire rotated set. I tried messing around with possible using the round() function but it image_angle never rounds correctly to a whole pixel, so how could you rotate an image without sub pixels?
(I understand GM actually scales out the amount of pixels to allow for smooth movement but i would like to have the room size remain the same due to the room editor.)