ID:160523
![]() Aug 27 2008, 3:46 pm
|
|
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?
|
![]() Aug 27 2008, 4:27 pm
|
|
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.
|
You can use, for example:
src.icon -= rgb(0,0,0,128) to subtract from, and add to, the alpha values of an icon. |