Sprite animation

Started by
12 comments, last by CryoVenom 16 years, 6 months ago
My laptop has a radeon too...

Can other people please try this and tell me what result they get and what video cards?

Also, if anyone reading this is experience with sprite animation in this manner, what would be the correct way to do this, that would work on all systems that support direct-X?
Advertisement
Did you check to see if your texture is being created with the size you expect it? If you get different results on different video cards it could be because some cards cant handle textures in certain sizes. Try a small, square texture in a power of 2 size (128 by 128, 256 by 256, 512 by 512), modify the RECT moving code accordingly and see if your problem goes away.
You think it's because the width is 4096 and my card only supports 2048?
That solved my problem! It seems to only load a file up to 2048 pixels...
It's kind of unfortunate since it will limit sprite sheet sizes.

This topic is closed to new replies.

Advertisement