crazygrouptrio
Active member
Trying to add a sprite to the HUD and I get "AssignBanks.asm(111) out of range" error. I've messed with placements but it always gives the same error. I've also been getting an AssignBanks error for other things such as inputs that I've been able to work around, so I was just curious what does the AssignBanks error actually mean? Anything in particular that causes this to occur that I can avoid doing?
Here is the script I was trying to add to make a sprite appear on HUD when the player gets weapon 3, placed in PreDraw.asm under the provided example in the script (around Line 39 for me). Those aren't the exact placement numbers, and like I said I messed around with them a lot and always got the error.
Here is the script I was trying to add to make a sprite appear on HUD when the player gets weapon 3, placed in PreDraw.asm under the provided example in the script (around Line 39 for me). Those aren't the exact placement numbers, and like I said I messed around with them a lot and always got the error.
Code:
LDA weaponsUnlocked
AND #%00000100
BEQ skipDrawingSpecial
DrawSprite #$80, #$80, #$10, #%00000001, spriteOffset
UpdateSpritePointer
skipDrawingSpecial: