ColorTransform a FlxSprite to pure white

164 views
Skip to first unread message

Matt

unread,
Jun 4, 2015, 8:23:30 AM6/4/15
to haxef...@googlegroups.com
I've been trying to color the existing sprite into pure white color when enemy gets hit. But it seems that with color transform i can only color it to black and shades of black and no actual color. Does anyone know how to color it white or is this a bug / missing feature.
Thanks

Smiz Meal

unread,
Jun 4, 2015, 6:55:16 PM6/4/15
to haxef...@googlegroups.com
It appears that the color offsets in the setColorTransform function of FlxSprite are not being used. I tested on several sprites (neko target) and could get sprites to change color using the weights but not with the offsets.

This looks like a bug that may want to raise as an issue on the haxeflixel repo.
Reply all
Reply to author
Forward
0 new messages