Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Super Mario World hacking: labmaster | 3 guests
Acmlm's Board - I2 Archive - Super Mario World hacking - 2 scrolling questions
  
User name:
Password:
Reply:
 

UserPost
Sukasa
Posts: 1795/1981
Before or after the palasm code? It'd be nice if there was a way to add in a new table entry for layer 2 scrolling, but I'd have no way of knowing how to do that.
d4s
Posts: 294/325
Originally posted by Sukasa
oh... I actually need the layer 2 h-scroll buffer, not the v-scroll buffer. Just update those, and the correponding layer will be moved when the game updates the ppu regs, right?


yep.
but keep in mind that the game will want to write to these ones, too, so you have to disable that.
Sukasa
Posts: 1787/1981
oh... I actually need the layer 2 h-scroll buffer, not the v-scroll buffer. Just update those, and the correponding layer will be moved when the game updates the ppu regs, right?
d4s
Posts: 293/325
$001a is the bg1 h-scroll buffer, $001e is the same for bg2.
of course, these are just the buffers that are written to the ppu regs each frame.
changing these will not actually cause mario to move through the levels, or update the tilemaps.

should be fine for your fast layer 2 movement, though.


[edit]
sorry, these are the h-scroll buffers, not the v-scroll ones, of course.
typo corrected.
Sukasa
Posts: 1785/1981
I've looked through the SMW memory map, but I can't find the offset that controls layer 1 scrolling. Could anyone help me? I've tried one of the offsets there, but that just made mario fall through everything. I'm trying to get it where once mario touches a custom block, the screen won't scroll anymore. Sceondly, does anyone know where the layer 2 X-scroll bytes are? I want to increase layer 2 scrolling to be slightly faster than layer 1 scrolling on one level, to imitate a foreground appearance. The one that was specified in the memory map didn't work for me.
Acmlm's Board - I2 Archive - Super Mario World hacking - 2 scrolling questions


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.