Views: 785,745,482
6 users online: AaronGabriel, Duraner Hawkeye, Hayashi Neru, Irondill, SomeGuy712x, UltiMario - Guests: 22 - Bots: 213 Users: 41,070 (1,532 active)
Latest: TheGamingTurfs
Tip: Try not to use the exact same background more than once or twice in a row.Not logged in.
Layer 2 BG Autoscroll
Forum Index - SMW Hacking - SMW Hacking Help - Layer 2 BG Autoscroll
Pages: « 1 »
How would I make the layer 2 BG of my level autoscroll? Also I have a layer 3 BG in use if that would affect anything.

Well, you can use any of the "layer 2 scroll" generator sprites; they still work even if Layer 2 is functioning as a background.

Past that, though, the only way is through some custom ASM. Set the Layer 2 background scroll (in #lm{othprops}) to "none", then insert a code like this to your level through UberASM Tool:

!rate   =   $03     ; rate of autoscroll.
; smaller value = faster. valid values are 00, 01, 03, 07, 0F, 1F, 3F, 7F, and FF.

    LDA $14
    AND #!rate
    BNE +
    REP #$20
    INC $1466
    SEP #$20
  + RTL

To make the background scroll downwards instead of left, change $1466 to $1468. To make it scroll right/up instead of down/left, change "INC" to "DEC".

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Ah, thanks a bunch for the thorough response! I'll try this out when I get the chance.
Damn! This is pretty neat stuff that I never thought I needed! I will also give my thanks and use this.
N E V E R - L O S E - Y O U R - E D G E
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Layer 2 BG Autoscroll

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us

Total queries: 7


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • MFGG
  • Gaming Reinvented