ScottRedrup Posted March 14, 2015 Share Posted March 14, 2015 Hey guys, I'm having a play around with changing the background color from one color to another color over time. To do this I'm using interpolateColor. Is that the correct thing to use? For example, I'm declaring two valid hexadecimal colors and then writing: this.stage.backgroundColor = Phaser.Color(color1,color2,100,0,1); But all I'm getting is a black screen. Does that line need to be in a for loop or will it work fine without one? Thanks! Link to comment Share on other sites More sharing options...
piotr Posted September 10, 2015 Share Posted September 10, 2015 I think you are missing a bit. Have you tried: Phaser.Color.InterpolateColor(color1,color2,100,0,1);? see this post: http://www.html5gamedevs.com/topic/7162-tweening-a-tint/?p=42712 Finders_Keepers 1 Link to comment Share on other sites More sharing options...
Recommended Posts