Search found 53 matches

by zanto
Sat Apr 10, 2021 5:01 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

I'm a little confused by your name table numbering... If you scroll to the right in that situation you'd have to write part of the new column on name table 1 (top right) and the other part on name table 3 (bottom right), isn't that right? Oh geez... I'm sorry. I made a mistake when explaining my pr...
by zanto
Sat Apr 10, 2021 10:48 am
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

I guess vertical scrolling is the same as horizontal scrolling with the one difference that you don't have an extra adjacent screen to draw on. You have to draw on the same screen that you are currently displaying (either top row or bottom row), and depending on the TV the seam where you flip the t...
by zanto
Fri Apr 09, 2021 8:30 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

So I made left and right scrolling work. Yay! Now I need to get vertical scrolling to work. My game uses vertical mirroring, btw. So the situation below is what I'm trying to deal with. The player is positioned in a way that makes the scroll takes up space in all 4 nametables. img1.png I'm trying to...
by zanto
Thu Apr 08, 2021 10:40 pm
Forum: Newbie Help Center
Topic: VRAM question
Replies: 6
Views: 302

Re: VRAM question

Ah, thanks for the information. I didn't know disabling the NMI would have that many side effects. Your idea of keeping the ppumask bits in RAM is similar to what I've been doing with ppuctrl, so I guess I'll do that too!
by zanto
Thu Apr 08, 2021 7:21 pm
Forum: Newbie Help Center
Topic: VRAM question
Replies: 6
Views: 302

Re: VRAM question

Oh >_< Of course, that makes sense. This code isn't executed during NMI. I interrupted NMI interrupts before executing this code because I don't want the screen to be drawn while it's running. But I guess it's not enough to make the screen not be drawn. Is there any way to make it happen? So, basica...
by zanto
Thu Apr 08, 2021 7:06 pm
Forum: Newbie Help Center
Topic: VRAM question
Replies: 6
Views: 302

VRAM question

I was debugging some code that is supposed to load tiles into a PPU nametable when I noticed something weird on the debugger. The video below shows it. https://www.youtube.com/watch?v=yxfQaq5olgA Basically, the VRAM address keeps changing even when I'm not making any reference to it. Also, when I se...
by zanto
Thu Apr 08, 2021 7:03 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

BTW I just found this pretty cool DW map building visualizer . I saw that! I was very impressed they managed to store maps using instructions like that! I wonder if they load the entire map into RAM for scrolling or if they know which specific instructions they need to run to load part of the map w...
by zanto
Tue Apr 06, 2021 11:17 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

Oh, that's interesting to know! Thank you for the help, everyone. I read the wiki pages whenever I can, but there are so many details that you have to be careful and it's easy to forget. Sometimes I get errors that make me go like "oh, I think I read about this on the wiki or the forums somewhere", ...
by zanto
Tue Apr 06, 2021 6:37 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

Okay, I made some progress. The scrolling right is working properly... almost. As you can see in the video below, when I move right, the tiles are loaded properly as I move right. But the problem is that when I move, the screen shakes twice, as you can see in this video. In the video it's not showin...
by zanto
Mon Apr 05, 2021 9:05 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

BTW, we can't watch the video without having to request access. Sorry. I uploaded the video to youtube. It's also easier to see the glitching effect that happens while the hero is walking https://www.youtube.com/watch?v=sMkj9Mq5NO4 If all you want is to set the increment mode for doing updates, you...
by zanto
Mon Apr 05, 2021 3:07 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

Ah yeah, keeping a copy of the previous ppuctrl bits and using it solved the freezing problem. I guess I misunderstood the example from the Nerdy Nights tutorial :? Now I'm having the problem show in this video: https://drive.google.com/file/d/1b9sO3ZnWqaMe9GnWnEUL6NYdhEo8vGjV/view?usp=sharing There...
by zanto
Sun Apr 04, 2021 11:32 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

After a lot of sweat and tears, I made very little progress in making the map scroll when the player moves to the right. I'm having a problem where the game freezes after the routine that draws a new tile column to the right of the screen is executed. The code responsible for it seems to be this par...
by zanto
Sat Apr 03, 2021 1:37 pm
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

I was thinking of only loading map data into RAM during map transitions, which I'd disable NMI interruption. So like, the player would leave a map (or start a new game), I'd disable NMI (and the screen would be all black during transition), load MAP data into RAM, store it in the PPU and re-enable N...
by zanto
Sat Apr 03, 2021 11:20 am
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

Also remember that VRAM increment mode is changed in $2000. It can be set to +1 (for horizontal nametable writes) or to +32 (for vertical nametable writes). So when you scroll horizontally you set it to +32 to update a character column and to +1 when scrolling vertically to update a character row, ...
by zanto
Sat Apr 03, 2021 9:35 am
Forum: Newbie Help Center
Topic: Scrolling RPG maps
Replies: 60
Views: 3348

Re: Scrolling RPG maps

The 9th bit of CameraX is the same as the nametable number I guess. Yes you can change the address between each write to PPUDATA, but it's slower than writing repeatedly and just let the auto-increment handle it. I see, that's good to know. When you are stuck it might help to look at how Dragon Que...