[4.5.x] Animated Tiles with CHR-RAM Switching

Subotai

Active member
I might have a solution for that glitching screen.. I might not..

In my current game it would glitch out a screen every once in a while in the same manner as your game. Then Joe the Turtle Rescue guy posted a solution to someone with the same problem.. this is what he said:

I believe this will help:
Do a search for the label "doMMSS:" It is likely in your doLoadScreen.asm file (in Subroutines).
Scroll down to the next occurance of "LoadChrData tempA, bla bla bla"
Under that, if your next command is "LDA backgroundTilesToLoad+1", that's the problem.
The script is missing a "JSR doWaitFrame" command. So your code should look like this:
LoadChrData tempA, bla bla bla
JSR doWaitFrame

LDA backgroundTilesToLoad+1

I no longer have that glitched out screen problem. I also thought it had something to do with my warp code.. but apparently didn’t at all… Let me know if it works for you.

I've added the :
JSR doWaitFrame that was missing.
unfortunately, it doesn't work for me.
same glitch.
 
Last edited:

Subotai

Active member
Dang. Sorry! Worth a shot!

@5kids2feed : Good news !!!! I found the problem.

I replace my doLoadScreen16 with the one James had.
After that, I had a lot of palette problem, blue, and black and white durant loading.
So I rollback with mine.

So I compare between his file and mine.

At the beginning of my doLoadScreen16 (ArcadePlatformer module), I have a SwitchCHRBank #$00
1631575278648.png

I transfert this command after the doLoadScreen16:
and it works !!!

Like that :

Code:
doLoadScreen16:
   LoadBackgroundPalettes newPal
    SwitchCHRBank #$00

LoadObjectSubPalettes spriteSubPal1, #$00

I do not have any glitch anymore, even without the :
JSR doWaitFrame you told me before.

Thanks for posting your solution, earlier.
 

Jonny

Well-known member
Does anybody know if there is a limit to the amount of frames that can be used (other than filling the bank)? I know that increasing to 4 is mentioned specifically so wondered if that was the max for any reason, before I attempt to do something that's not possible.
 

chains

Member
Does anybody know if there is a limit to the amount of frames that can be used (other than filling the bank)? I know that increasing to 4 is mentioned specifically so wondered if that was the max for any reason, before I attempt to do something that's not possible.
There are only 4 banks available, but I think you can have all the frames you want looping between them.
 
Very good. You are the best. Thanks for helping us with this..Do you know if there is any way to add more framecount? I can only use 8...
 
[USER = 1221] @JamesNES [/ USER] Muito obrigado! Funciona muito bem. Isso realmente adiciona muito sabor extra ao meu jogo.

View attachment 5221
Incrível. Como você fez o personagem se agachar? E as animações de fundo? Eu estava fazendo um jogo na versão 4.1, mas acabei abandonando porque não entendia como fazer essas coisas ... Agora estou estudando a última versão ...
 

mouse spirit

Well-known member
Won't it be easier and better for your project to upgrade to 4.5.9? As far as I can see, all the tutorials and discussions are based on this version.
Not really so much . The only 2 major things 4.5 has is visually 8x8 tile screens,and some better scrolling with major issues. And the many problems that 4.5. has,alot of them weren't problems in 4.1. and sadly,if there's a 5.0,which I highly doubt,youll find that anything 4.5 is out the door,and we'll have to make the same choice.
Start with a broken regressed program? Or stick with what you know that works now that you fixed it?
I stuck with 4.1 because it was the only option when I got here. I spent a year using it, learning it,and fixing it. So the version of 4.1 I have is far less broken than most others,maybe apart from dale_coop,or anyone else sticking with it that has fixed many many things.
I do understand your thought process though,and you could be right in some ways.
Also no, there actually may be more 4.1 on here than you think,it's just a little burried.
I'm not sure if you've ever used 4.1,but it would be a great pain to import some projects,like mine,to 4.5. Just because I did so many little things everywhere and ect.And in the end,wouldn't really help it much,except with a more detailed start screen,maybe easier bankswitching I see....
 
Last edited:

chains

Member
@mouse spirit, I understand. The project I'm currently working on will be the first and the last in NES Maker. Not because it's a bad tool or anything, but I understand the limitations and the challenges we face to go further with their initial proposal. That's fine, and I'm sure people will continue to find this tool amazing. But I think I can work on my engine. At least I'll understand the bugs I introduce myself. :)
 

mouse spirit

Well-known member
@mouse spirit, I understand. The project I'm currently working on will be the first and the last in NES Maker. Not because it's a bad tool or anything, but I understand the limitations and the challenges we face to go further with their initial proposal. That's fine, and I'm sure people will continue to find this tool amazing. But I think I can work on my engine. At least I'll understand the bugs I introduce myself. :)
Ha .Fersure.Good luck with that venture, and youre game is great so far by the way.
Yeah it was just hassling enough to learn all the "quirks" of 4.1.... i just didnt wanna go through everything again.
GIves me anxiety!
 
Top Bottom