Original Post
Question for you maths experts: I had a sprite sheet of 52 cards. It was bigger than I needed so I shrunk it by 75% more or less. That was all good except I forgot it would mess up the size of my individual sprite cards. Now each card (sprite) is 88.888888889 wide by 122.33333333 height. My graphics engine will only take a float value for width, height.. So I thought simplest solution is resize my total sprite sheet till each sprite is a whole number again. I just wondered if there is some formula I can use to work out what percentage to multiply by so that BOTH height and width are whole numbers again but still close as possible to their present size. Original size of each card was 189 by 260. Sprite sheet is 9 frames long by 6 high. Does that make any sense? m0ng00se