ID:160523
 
Hi there, I was wondering if it was possible to change the alpha intensity of my player icon with the click of a button? If so would someone be kind enough to help me?
The only way I know of (unless Blend() now supports alpha) would be to combine GetPixel(), SwapColor(), and icon_states(). This can be very CPU intensive, though, so be warned! Note that someone else might have a better method, by the way.
In response to Jeff8500
I do. Use the Icon.MapColors() proc. Should be fairly simple to do.
You can use, for example:
src.icon -= rgb(0,0,0,128)

src.icon += rgb(0,0,0,10)

to subtract from, and add to, the alpha values of an icon.

In response to Hobnob
Oh sure, do it the easy way. :P