Better scrolling?

AllDarnDavey

Active member
ScrollRecenter.gif
Nice!

I'm currently playing around with speeding up the camera when the player is past the scroll pad, so it slowly recenters the player on the scroll pad. Allowing for giving a nice buffer ahead for the player to react too. It gets a tiny bit jerky when the camera catches up to the scroll pad, still trying to iron that out a bit before posting.
 

drexegar

Member
TakuikaNinja said:
drexegar said:
Nice, Im working on shooter mod, the code is a tad different in a few places, what kind of changes you made for the right scroll?

Basically, it checks for the "right edge for scroll" screen flag (by ANDing ScreenFlags00 with #%00010000) and skips the rest of the scroll update routine if it's set.
Anyways, I've managed to apply this fix to the shooter module. I've already tested it on my end, so this should work:

"the code you made"

This code has too many differences from the original shooter module and cause 2 big problems, messing with the timing of scrolling and causes some monster to not load.

BUT I took your advice and did 1 simple change of the original script that fixes the problem:

STEP 1. Open up your doUpdateCamera_shooter2.asm Script (settings>Script Settings>Subroutines>Handle Camera)

STEP 2. Go to Line 62. Change JMP +noHorizontalCameraUpdate to JMP +skipCamera

STEP 3. Go all the way to the bottom right before the RTS and add a +skipCamera label to complete the JUMP.
 

AllDarnDavey

Active member
http://nesmakers.com/viewtopic.php?f=40&t=6144
Just posted my scrolling improvements to a separate Forum Post. Figured having it buried in this help post wasn't optimal to those now and in the future who don't know to look for it here.

Might be a good idea to make a new thread for your shooter scroll fixes as well (if you haven't already), just to make them easier to find in the future.
 

TakuikaNinja

Active member
Um, so I've realised that the fix by AllDarnDavey & I was based on an older script, which meant that there were issues with loading enemies at the scroll seam.
I've figured out a much simpler way to fix the issue for both the MetroidVania & Shooter modules:

[MetroidVania]
STEP 1. Open the doUpdateCamera.asm Script (settings>Script Settings>Subroutines>Handle Camera) & copy + paste all of the code into a new file.

STEP 2. Go to Line 65. Change JMP +noHorizontalCameraUpdate to RTS

STEP 3. Save the file and assign that in place of doUpdateCamera.asm

[Shooter]
STEP 1. Open the doUpdateCamera_shooter2.asm Script (settings>Script Settings>Subroutines>Handle Camera) & copy + paste all of the code into a new file.

STEP 2. Go to Line 62. Change JMP +noHorizontalCameraUpdate to RTS

STEP 3. Save the file and assign that in place of doUpdateCamera_shooter2.asm
 
Top Bottom