Language…
4 users online: Cascade, Green Jerry, lemoncat, Moronsky - Guests: 43 - Bots: 112
Users: 68,059 (2,155 active)
Latest user: AnthonyCShin

Parallax HDMA Toolkit

UberASM Repository → Parallax HDMA Toolkit

Submission Details

Name: Parallax HDMA Toolkit
Author: MarioFanGamer
Added:
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: A toolkit which easily allows you to create parallax HDMA on either layer 1, 2 or 3.
Unlike most parallax HDMA, this one is more generalised and you can scroll the affected layer vertically. You can also enable waves on certain lines.

Read the readme for more details.
Tags: hdma lorom parallax sa-1
Comments: 22 (jump to comments)
Rating:
5.0 (2 ratings)
No rating
Download 7.05 KiB | 990 downloads

Screenshots

Comments (22)

DasFueller Link
What values make sense for $dd? I don't really understand that part.
 MarioFanGamer Author Link
The wavelength or rather, the amount of scanlines of the waves' length, the length of the pattern before it repeats.

If you don't use waves, that should be omitted i.e. not even set to zero but entirely removed alongside $ee.
Nobody-86 Link
Hi, great work, but I have a problem with large ScrollVal tables. If the table has more than 51 entries, all entries above 51 are ignored. Is there a way to fix this?
Anas Link
I noticed one small bug with this: the parallax disappears when the players does the victory walk from the goal.
DasFueller Link
Hi, me again... I am trying to combine a lvl parallax with some other code, but UberASM shows two errors:
Code
Is it possible to combine the parallax code with another UberASM code?
Found my mistake
chineesmw Link
Yes, you can. I was able to combine it with gradients from Effect Tool. I think you're getting this error because you're missing ParallaxToolkit.asm in the library folder.
 MarioFanGamer Author Link
That happens because the HDMA interferes with the status bar and there is no easy way to fix it as for now unless the status bar code (more specifically, the one which keeps the status bar in place) has been modified to be compatible with HDMA.
Anas Link
Originally posted by RichardDS90
Do you know how to stop layer 3 tides from flickering after applying this for layer 2? It flickers like mad.


Late, but I'm experiencing the same thing.
RichardDS90 Link
Do you know how to stop layer 3 tides from flickering after applying this for layer 2? It flickers like mad.
Kixune Link
Would it be possible to add another byte to the tables to produce auto-scrolling sections?
 MarioFanGamer Author Link
That has to be implemented yet which I plan to do for the next update.
 Sayuri Link
Originally posted by MarioFanGamer
....
Thank you so much for clarifying! I got an effect I'm happy with in the area I wanted to use this for, so I think that's all good for now. I appreciate it.
 Sayuri Link
How do you find the proper values for $cccc/max Y position for each row you want to apply the effect to? The section on $cccc in the readme had me somewhat confused. I see in the example table provided, you use 5E, BE, and 11E (not counting the required FFFF). Where do you find the values you need depending on the area's background? Apologies, I've basically never dabbled in HDMA outside of using EffectTool a handful of times.
 MarioFanGamer Author Link
That's the vertical position within the background. In the given example, that means to apply the scrolling up to lines 0x5E, 0xBE and 0x11E or the 6th, 12th (0xC) and 18th (0x12) 16x16 tile. You can use the background editor for help.
 MarioFanGamer Author Link
Originally posted by DoktorGroove
*words*

Parallax HDMA Toolkit actually uses the layer 1 position to determine the positions, hence the need to modify the level portion of the parallax code, not to combine it with autoscroll.
DoktorGroove Link
Originally posted by MarioFanGamer
Originally posted by BlueToad
Originally posted by DoktorGroove
This is a very cool toolkit and easy to use as well #w{<3}
I have one question @ MarioFanGamer: is it possible to combine this parallax with an autoscroll (e.g. parallax on layer 2 with autoscroll on layer 2)? The "library-method" with this toolkit and the Layer2-Autoscroll UeberASM wasn't successfull ...


Do you mean Layer 2 scrolling up and down?

No, it's where the background scrolls automatically in the horizontal direction.

If I get to update it, I'll probably add such a feature. Until now, you'd need to make some changes in the level code and even then, it will scroll the whole background, not parts of it.


@ MarioFanGamer: When the whole background would be scrolled does it consider the parallax table? (sorry didn't get that). My intention/idea was that the parallax effect is applied automatically (Mario stands still but BG is scrolling with parallax effect).
I tried to add some kind of

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

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


but that doesn't work #w{=|}

Do you have an idea how to implement this feature? Is it "just a snippet of code" or something bigger? Nevertheless it would be amazing to have a feature like that #w{=3}
 MarioFanGamer Author Link
Originally posted by BlueToad
Originally posted by DoktorGroove
This is a very cool toolkit and easy to use as well #w{<3}
I have one question @ MarioFanGamer: is it possible to combine this parallax with an autoscroll (e.g. parallax on layer 2 with autoscroll on layer 2)? The "library-method" with this toolkit and the Layer2-Autoscroll UeberASM wasn't successfull ...


Do you mean Layer 2 scrolling up and down?

No, it's where the background scrolls automatically in the horizontal direction.

If I get to update it, I'll probably add such a feature. Until now, you'd need to make some changes in the level code and even then, it will scroll the whole background, not parts of it.
BlueToad Link
Originally posted by DoktorGroove
This is a very cool toolkit and easy to use as well #w{<3}
I have one question @ MarioFanGamer: is it possible to combine this parallax with an autoscroll (e.g. parallax on layer 2 with autoscroll on layer 2)? The "library-method" with this toolkit and the Layer2-Autoscroll UeberASM wasn't successfull ...


Do you mean Layer 2 scrolling up and down?
DoktorGroove Link
This is a very cool toolkit and easy to use as well #w{<3}
I have one question @ MarioFanGamer: is it possible to combine this parallax with an autoscroll (e.g. parallax on layer 2 with autoscroll on layer 2)? The "library-method" with this toolkit and the Layer2-Autoscroll UeberASM wasn't successfull ...
GaloombaCat Link
this is epic
 Anorakun Link
This is such amazing toolkit. I'm having a blast experimenting with it. #smrpg{:3}
 Kevin Link
Tested with: Lunar Magic 3.11, UberASM Tool 1.4, SA-1 1.32, Snes9x 1.60.
Very nice toolkit and pretty simple to use. Be sure to read the readme as it explains pretty much everything and it provides answers to some issues you might encounter when using it.