Jump to content

tint sprite on mobile disables sprite state change


rabbit6w
 Share

Recommended Posts

When I apply



this.player.tint = 0xcd0937;

to tint my sprite red, the sprite behaves as expected on desktop. The sprite changes color and when the sprite moves left or right all of the sprite state changes are recognized and the tint is active. On mobile, the sprite changes to the desired tint color but stays stuck in the sprite state that was active when the tint was applied.


Anyone know how to achieve the expected behavior on mobile?


Link to comment
Share on other sites

Yeah this is a bug in Pixi, sorry. We're going to help get this fixed directly in Pixi, but it won't be for a couple of weeks I'm afraid. The reason you don't see it happen on desktop is because it's running in WebGL, the bug only occurs in Canvas. If you swap your desktop version to render to Canvas only, you'll see it happen there too.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...