pickleplayer Posted September 23, 2015 Share Posted September 23, 2015 The colour tweening component is a pretty nifty way to change the colors and hues of in-game objects without changing their sprites.inst.components.colourtweener:StartTween({1,0,0,1}, (2), nil)where the braces are ( {red, green, blue, opacity}, (time), (function)) So the above code turns the object red over a period of 2 seconds. But it seems you can make any color EXCEPT white. putting the numbers to {0,0,0,1} makes it black, and {1,1,1,1} just puts it at it's original colors. It'll only let you use numbers between 0 and 1 (I've tried -1 and 2, it doesn't work). Is there any other way to turn an entity white? Maybe without tweening? Link to comment https://forums.kleientertainment.com/forums/topic/58080-using-colour-tweening-to-turn-an-object-white/ Share on other sites More sharing options...
Mobbstar Posted September 24, 2015 Share Posted September 24, 2015 (edited) You can use "hightlight", but hovering over the entity twice (not once, twice) turns it back to normal, so it only works for FX and NOCLICK prefabs. I recommend to use handsome matts tool to extract the image and photo-edit it. EDIT: Notice that chromiumboy's method is used by the highlight component and thus (probably) suffers from the issue too. Edited September 24, 2015 by Mobbstar Link to comment https://forums.kleientertainment.com/forums/topic/58080-using-colour-tweening-to-turn-an-object-white/#findComment-675632 Share on other sites More sharing options...
chromiumboy Posted September 24, 2015 Share Posted September 24, 2015 (edited) Try 'inst.AnimState:SetAddColour(1,1,1,1)' It's not pure white, but its pretty close Use 'inst.AnimState:SetAddColour(0,0,0,0)' to return to normal. Edited September 24, 2015 by chromiumboy Link to comment https://forums.kleientertainment.com/forums/topic/58080-using-colour-tweening-to-turn-an-object-white/#findComment-675663 Share on other sites More sharing options...
pickleplayer Posted September 24, 2015 Author Share Posted September 24, 2015 Try 'inst.AnimState:SetAddColour(1,1,1,1)' It's not pure white, but its pretty close Use 'inst.AnimState:SetAddColour(0,0,0,0)' to return to normal. Yesss, this is perfect!!It looks so much better as a color modifier too. It actually adds color instead of just "sucking out all of the other colors to make it one color" Thank you! there wouldn't happen to be a tweening method for this too, would there? Link to comment https://forums.kleientertainment.com/forums/topic/58080-using-colour-tweening-to-turn-an-object-white/#findComment-675764 Share on other sites More sharing options...
chromiumboy Posted September 24, 2015 Share Posted September 24, 2015 No worries As you noted earlier, tweening only darkens or adjusts the alpha of game sprites. Tweening and add colour can be used in combination however. Link to comment https://forums.kleientertainment.com/forums/topic/58080-using-colour-tweening-to-turn-an-object-white/#findComment-675789 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now