Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 26, 2016 17:50:52 GMT -5
Since I mentioned the opacity trick, I figured I'd post an example of it.
How it works: 1. Create a low priority sprite (the character/object you want the silhouette effect of) 2. Create a high priority sprite of the background that you want the sprite in step 1 to walk behind 3. Draw a high priority tile that you want to "bleed through", usually a darker color (the example uses a highlight effect)
Palettes pal,1,0,16 LoadTiles Tile1,2,100 a = AddSprite(1,1) PropSprite a,1+Priority(0),0
tilesprite = AddSprite(1,1) PropSprite tilesprite,100+Priority(1),1 MoveSprite tilesprite,168,128 MoveSprite a,128,128 SetGfxPlane Scroll_B DrawTile 101+Palette(1)+Priority(1),5,0 While 1 j = JoyPad(0) x = j.3 - j.2 y = j.1 - j.0 MoveSprite a,SpritePosX(a)+x,SpritePosY(a)+y Sleep 1 Wend End
Pal: DataInt $0000,$00EE,$0000,$0888,$0444,$002E,$0840,$068C ' Palette: DataInt $0ACE,$0008,$0024,$04C8,$0600,$0E82,$00EE,$008E
Tile1: DataLong $FFFFFFFF DataLong $FFFFFFFF DataLong $FFFFFFFF DataLong $FFFFFFFF DataLong $FFFFFFFF DataLong $FFFFFFFF DataLong $FFFFFFFF DataLong $FFFFFFFF Tile2: DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111 DataLong $11111111
Things to note: sprite creation order does make a difference.
|
|
|
Post by wraith on Apr 3, 2018 5:13:15 GMT -5
I stumbled upon this effect one day while doing some random test, thought it was just a glitch until doing more research. It's really cool !!! Quick rom to give an idea of what can be done with it. Opacity.bin (16 KB)
|
|
|
Post by Oruam on May 10, 2018 12:45:51 GMT -5
I would like a sample to use shadow mode to male shadows like Genesis port of Mortal Kombat 1.
|
|