Sprite System Update

BlitzMax Forums/BlitzMax Programming/Sprite System Update

I haven't experimented with this yet, but is there any different in a texture shown at a coord 0.2 say and 0.5? Or does any floating point coord just look the same?

Another important thing I found out early on is that if you have an image with non even dimensions e.g. 31 wide instead of 32, and you have automidhandle on, when you draw at an integer coord, of course it decides that the top left is something.5 and thus draws it all anti-aliased, so watch out for that one.

Hey, I've just noticed that sh*t got through the swear filter. Anyway, if I round the coords it is a bit jittery, just like is was in BPlus, a problem that I could never remove. Basically if the HZ is 60 and your object moves at 50 pixels per sec, it will NEVER look totally smooth. At least the anti-aliasing gives it a smooth effect. I've made my TSprite have the option of rounded or not, because for buttons and static scenery you might want it non rounded of course.