Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Super Mario World hacking: labmaster | 3 guests
Acmlm's Board - I2 Archive - Super Mario World hacking - I have some ASM questions about the sprite that makes the dark screen.
  
User name:
Password:
Reply:
 

UserPost
HyperLamer
Posts: 1379/8210
It's possible, but complicated. The translucency effect can be done without the BG by creating a 'mask' on layer 2 - put all black (I think) over the area that you want to not be dark. You have to use level mode 1E or 1F, one of them forces layer 2 above layer 1. They'll be translucent, but it won't matter. Using ASM (a custom block at the entrance, or palette ASM), set the value at $7E0040 to Layer 2 Colour Subtraction (I forget what value that is exactly). Don't forget to set layer 2 to something that keeps it on-screen at all times.

If you want the BG as well, you need to do the same thing, but place your mask on layer 3. Layer 3 isn't editable in LM, so you'll need to write your tilemap onto it via ASM. The problems this creates are:
-The scorebar is on layer 3, so you'll need to avoid using that area.
-I think the game uses HDMA to force all non-scorebar areas of layer 3 behind layer 1. You'll need to stop that. (Anyone know how? )
-Layer 3 in SMW's video mode can only have 256 colours.
(Before you ask, you can't use layer 4 in this mode; the only mode that allows it only allows 256 colours per layer.)
Keikonium
Posts: 393/-2459
I have created a wicked cave that is suppoed to be very dark. I can edit the palettes to make them darker but it doesn't look that great. So I use the "disco ball" to make a light source. First off the background, which is essential, doesn't show up when I use the light, and the sides of the screen are entirly black.

So my question is: can I use ASM to make the BG show up, and lighten the sides of the sceen so they are translucent black? Just so you can almost make out whats infront of you. So if I could use ASM to change this that would be great.

Does anyone know the byte/bytes I need to change? Or is more complicated than that?

Thanks
Acmlm's Board - I2 Archive - Super Mario World hacking - I have some ASM questions about the sprite that makes the dark screen.


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.