A fix for Wrong Srpites being drawn.......

tbizzle

Well-known member
I had the weirdest Sprite glitch in my game where my HUD, Player, and Monster sprites would do a cycle through an animated tileset I had for that screen. It would happen like every 70 or so times upon entering a new screen. Here is some video of it below:

If this ever happens to you, here is it what I did to fix it.......
Right before the drawSprite macro around line 300 in the doDrawSprites script, I added this:
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Tbone added code
            LDA updateScreenData
            AND #%00000100
            BEQ +isUpdated
            JSR doWaitFrame
                +isUpdated:
            ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;   
            DrawSprite tempA, tempB, tempC, tempD

Hope this helps someone.
 
Top Bottom