Le Twitch Posted July 1, 2014 Share Posted July 1, 2014 there will be 2 sprites (they're just squares) and some text that constantly need to change colours. so would it be better to change the tint or use a spritesheet with the different coloured sprites? Link to comment Share on other sites More sharing options...
valueerror Posted July 1, 2014 Share Posted July 1, 2014 as far as i know tinting is very expensive.. i guess it depends on how often you change the sprite.. Link to comment Share on other sites More sharing options...
Le Twitch Posted July 1, 2014 Author Share Posted July 1, 2014 as far as i know tinting is very expensive.. i guess it depends on how often you change the sprite.. quite often i would have to say Link to comment Share on other sites More sharing options...
lewster32 Posted July 1, 2014 Share Posted July 1, 2014 Switching the sprite frame if using a sprite sheet or atlas is much faster than tinting, but you lose the flexibility of being able to tint to arbitrary shades. For what it's worth, tinting is still very fast in most cases; here's a demo I did of a possible future pixi/Phaser addon which redraws a BitmapText object and tints every character individually at full speed even running in canvas on a iPhone: http://rotates.org/phaser/bitmaptextcolor.htm Le Twitch and Massemassimo 2 Link to comment Share on other sites More sharing options...
Le Twitch Posted July 1, 2014 Author Share Posted July 1, 2014 Switching the sprite frame if using a sprite sheet or atlas is much faster than tinting, but you lose the flexibility of being able to tint to arbitrary shades. For what it's worth, tinting is still very fast in most cases; here's a demo I did of a possible future pixi/Phaser addon which redraws a BitmapText object and tints every character individually at full speed even running in canvas on a iPhone: http://rotates.org/phaser/bitmaptextcolor.htm wow that's pretty cool. thanks for the help. you're always so helpful =] lewster32 1 Link to comment Share on other sites More sharing options...
Recommended Posts