Drell
Member
It seems like due to image_speed and image_index returning as precision floating point values, the way that game maker evaluates them is somewhat inconsistent. I have the variable animSpeed which evaluates to 0.27 in the create event of my character object, but when I set the image_speed = animSpeed, image_speed returns 0.270000010728836. This would be fine except that it will evaluate to slightly different values in the trillionths and somehow when GM:S rounds the number when converting to a string it sometimes produces results that are one hundredth off from one another during it's rounding process. Is there a way to consistently get the same image_speed and image_index without completely creating my own animation functionality?