[4.5.6] Scrolling Fixes for MetroidVania & Shooter Modules

Post Reply
User avatar
TakuikaNinja
Posts: 123
Joined: Thu Feb 28, 2019 10:11 pm
Location: Wellington, NZ
Contact:

[4.5.6] Scrolling Fixes for MetroidVania & Shooter Modules

Post by TakuikaNinja » Sun Sep 27, 2020 5:23 am

Just cross-posting this from "Ask For Help -> Better Scrolling?" for everyone's convenience.
There's an issue with the camera update scripts where warping into a screen with right edge for scroll enabled causes the left side to become corrupted.
Here's what the issue looks like, using derexgar's game as an example:
Image

Here are the fixes:

[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
Last edited by TakuikaNinja on Tue Sep 29, 2020 2:12 am, edited 3 times in total.
User avatar
TakuikaNinja
Posts: 123
Joined: Thu Feb 28, 2019 10:11 pm
Location: Wellington, NZ
Contact:

Re: [4.5.6] Scrolling Fix for MetroidVania & Shooter Modules

Post by TakuikaNinja » Sun Sep 27, 2020 5:25 am

Here's a fix for the MetroidVania recoil scrolling, provided by AllDarnDavey: viewtopic.php?f=60&t=6080#p30246
Last edited by TakuikaNinja on Sun Sep 27, 2020 5:42 am, edited 1 time in total.
User avatar
TakuikaNinja
Posts: 123
Joined: Thu Feb 28, 2019 10:11 pm
Location: Wellington, NZ
Contact:

Re: [4.5.6] Scrolling Fix for MetroidVania & Shooter Modules

Post by TakuikaNinja » Sun Sep 27, 2020 5:42 am

Here's a fix for the MetroidVania "doStopScrolling.asm" script, provided by yours truly: viewtopic.php?f=40&t=5972
User avatar
AllDarnDavey
Posts: 227
Joined: Sat Jan 12, 2019 6:16 am
Location: Seattle

Re: [4.5.6] Scrolling Fixes for MetroidVania & Shooter Modules

Post by AllDarnDavey » Sun Sep 27, 2020 6:17 am

Nice.
User avatar
baardbi
Posts: 169
Joined: Sun Jul 07, 2019 2:28 pm
Location: Norge

Re: [4.5.6] Scrolling Fixes for MetroidVania & Shooter Modules

Post by baardbi » Sun Sep 27, 2020 6:45 am

TakuikaNinja wrote:
Sun Sep 27, 2020 5:23 am
Just cross-posting this from "Ask For Help -> Better Scrolling?" for everyone's convenience.
There's an issue with the camera update scripts where warping into a screen with right edge for scroll enabled causes the left side to become corrupted.
Here's what the issue looks like, using derexgar's game as an example:
Image

Here are the fixes:
MetroidVania version, provided by AllDarnDavey & yours truly (Copy + paste into a new asm file and assign it in place of "doUpdateCamera.asm"): viewtopic.php?f=60&t=6080&start=10#p30304

Shooter module version, provided by derexgar (You should back up the original script before editing it for future-proofing): viewtopic.php?f=60&t=6080&start=20#p30341
I wish I had this before ByteOff. Thank you very much for doing this.
Post Reply