(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-17-24 10:50 PM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - Super Mario World: Fast BG Scrolling
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Yoshi Master
Posts: 9/82
One time I was looking for the "cage" sprite in lunar magic a while back(don't worry I found it) And I came across an unused sprite that made the backround scroll on it's own. I can't seem to find it again sadly.
Sukasa
Posts: 46/2068
When sprite F4 is in the level, those blocks automatically set a RAM address (don't know which one), the same way sprite C1 does.
BMF54123
Posts: 103/876
C2 20 A9 66 14 18 69 00 20 89 66 14 E2 20 6B

The two opcodes in bold are your problem. A9 is LDA Immediate, which loads A with the value #$1466, rather than the value stored at address $1466. 89 is...uh...BIT Immediate, which still confuses and infuriates me to this day (don't use it ). Change 'em to AD (LDA Absolute) and 8D (STA Absolute) and everything should work fine.

Also, why would you want to use a block to control scrolling? Wouldn't you have to be touching it at all times, or does it set some auto-scroll bit I'm unaware of?
asdf
Posts: 45/4077
That block worked. Thanks.

Although I still want to know what I was doing wrong with the ASM. Just in case I ever wish to insert other ASM later.
C:/xkas bio.asm
Posts: 32/1209
try the one in the Custom block workshop
asdf
Posts: 44/4077
I looked. There is no such block in the latest version of Blocktool. Are you sure you didn't make it yourself?

I tried the LevelASM Method again. I now know that the LevelASM system was successfully implemented (in an ironic way too, because a typo in the code table for the level caused a crash when I went to said level). After fixing that typo, I tried it again. That time, it didn't crash, but it didn't work either. I don't think I understand what I need to do, although I probably have a good idea of what to do. Here's the hex of what I put in.

C2 20 A9 66 14 18 69 00 20 89 66 14 E2 20 6B

What am I doing wrong?
Sukasa
Posts: 45/2068
Put the sprite F4 in, then look through the latestversion of blocktool.

I promise you that there is a 'Fast BG scroll" block, or one named something similar to that.
asdf
Posts: 43/4077
I don't recall there being a Fast BG Scroll block for BlockTool. I tried LevelASM as well. For some reason, it did not work. I followed the instructions to the detail, but it still did nothing (although it did not crash).
Sukasa
Posts: 40/2068
OR you could just use the 'fast BG scroll' block in blocxktool, like I did for COTMK 1.
BMF54123
Posts: 100/876
You can make your own background scroll with LevelASM. Just use the following code:

REP #$20
LDA $1466
CLC
ADC #$xxxx
STA $1466
SEP #$20

where xxxx is the number of pixels you want to scroll each frame (if you want to scroll the other way, just replace the CLC ADC with SEC SBC).

Now, all you need to do is disable horizontal background scrolling in LM, and set the LevelASM pointer to your code address. That's all there is to it!
asdf
Posts: 42/4077
Is there any way to trigger the fast background scroll (Sprite F4) without the use of Sprite C1? It's obvious that having some moving grey blocks in a level isn't exactly going to be healthy for your level design. The level I am making would just look wrong without the fast background scrolling, so not using it is out of the question as well. I remember this effect being in one hack, but I forgot what it was. Any help would be appriciated.
Acmlm's Board - I3 Archive - ROM Hacking - Super Mario World: Fast BG Scrolling


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.002 seconds; used 351.95 kB (max 400.55 kB)