diffuse sprite

Previous topic - Next topic

phaelax

Unless there's already a way to change to the change the overall tint of a sprite.

Kitty Hello

no, there's not. You want to fade to grey, right?
Way is:
-SPRITE2MEM
-convert pixels to greyscale
-MEM2SPRITE (to new sprite slot)
-fade from colourd sprite to greyscale sprite:
for pos = -0.01 to -1 step -0.1 // better with timer
alphamode pos
drawsprite grey, 0,0
alphamode -1-pos
drawsprite colour
showscreen
next
-free temp, grey sprite: grabsprite grey, 0,0,0,0