Similar Posts

11 Comments

  1. This works perfectly for the most part but I noticed something really weird with one of my character’s sprites! I’m working on a top-down game where the player character can move in 8 directions and for some reason when he’s moving in his south or southwest direction and using his “walking while holding weapon” sprite index he’ll get a shifting pixel on his head! It’s bizarre. It doesn’t seem to happen with any other direction or sprite index, so I’m puzzled.

  2. This was helpful, even in 2020. I’ve re-worked my display manager about three times now, and always end up finding some weird bug case. After reading this tutorial, a lot of stuff that’s been rattling in my head has finally clicked. Thanks for all your hard work!

    1. The idea is to simply draw onto a perfectly sized surface (pixel perfect) and then draw that surface in the stretched mode. To do this we have to disable the automatic drawing and take control of the final drawing ourselves. You might be missing some steps. If you feel like it, I can take a look at the code.
      I’ll setup a sample project for this with the latest version and see if I can upload it somewhere soon. Let me know 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.