Vertical Scrolling? (4.5.9)

PewkoGames

Member
Its been asked a bunch of times most likely, but is there a way to modify the metroidvania or any of the scrolling modules to vertical scrolling?
 

puppydrum64

Active member
I tried something similar to the do_simpleScrollRight.asm script for Up, but it's not working. I'll post what I've got here but I couldn't get anything different to happen whatsoever.

Code:
    UP_SCROLL_PAD = #$10 ;;;; I don't know what number to put here
    LDX player1_object
    LDA Object_y_hi,x ; used to be Object_x_hi in the horizontal versions
    SEC
    SBC camY ;used to be camX in the horizontal versions
    CMP #UP_SCROLL_PAD
    BEQ +doActivateScrollByte
    BCS +doActivateScrollByte
        LDA scrollByte
        AND #%00111111
        STA scrollByte
        RTS
+doActivateScrollByte
    LDA scrollByte
    AND #%01000000
    BNE +notChangingCamDirectionForUpdate
    LDA scrollByte
    ORA #%00000010
 +notChangingCamDirectionForUpdate
    AND #%00111111
    ORA #%11000000 
    STA scrollByte
    ;;; just like movement byte of a player.
    ;;; bit 7 indicates horizontal movement of a player
    ;;; bit 6 indicates 0 for left, 1 for right.
    
    RTS

To be honest I'm not sure what part of the game's scripts makes scrolling happen. Even the horizontal auto-scrolling shooter module has the "Handle H Scroll" script define set to blank.
 

Jonny

Well-known member
@PewkoGames @puppydrum64

With some help sorting the PPU wrap on discord, I have a continous loop controlled by a monster action. I've tried looking though all the scripts to do with scrolling but can't figure out how to do anything usefull, like scroll more than one screen for a cutscene effect. I tried backtracking through scripts from inputs but I don't understand much of what's happening where. Anyway, maybe see if you can figure anything out because I'm lost! ... (more ambition than knowledge)

Code:
LDA camY
ADC #01
CMP #240
BCC +
LDA #0

;; MAYBE JSR HERE? ;;

+
STA camY
STA scrollByte

scroller.gif
 
Top Bottom