cruzlutor Posted June 8, 2016 Share Posted June 8, 2016 Hello, I want to change phaser Rectangle fill color with tween transition, for example from blue to red, but I didn't find any example, is this posible? thanks Link to comment Share on other sites More sharing options...
glantucan Posted June 8, 2016 Share Posted June 8, 2016 You can't change the color of a graphics object, remember we are working with pixel graphics here. You could redraw the rectangle on every frame but I guess that's going to be slow. I would recommend using sprites with white textures and tweening their tint property. I found this thread talking about how to do it. Link to comment Share on other sites More sharing options...
Recommended Posts