ID:171441
![]() Sep 24 2004, 9:28 pm
|
|
I've seen demos about icon manipulation like the Shadow demo and the car demo which turns the icon degrees-wise. Well, since that can be done, I was wondering if it is possible to create an icon fade to transparent without having to make the fading icon states.
|
![]() Sep 24 2004, 9:29 pm
|
|
There is no alpha channel (transparency), so no.
|
You could, however, do Blend()s with dithered icon states to dither the icon. This isn't nearly as nice-looking as alpha (variable) transparency, but it's the next best thing.
You'd use the ICON_ADD blending mode, and the dither icon states would be made up of only black pixels (where you want the pixels to stay) and transparent pixels (where you want to eliminate pixels). Like this: var/icon/I = icon('whatever.dmi') |
This will gradually blend a mob's icon with the icon of the turf it is in. If the mob is immobile, it will appear that it is fading in or out.
mob/proc |