Jump to content

Pepa489
 Share

Recommended Posts

 

with a normal sprite if you changed smoothed value you can do this

background.smoothed=!background.smoothedbackground.texture.baseTexture.dirty() // not a public API function

there might be an equivalent for tileSprite

 

Not working :(

Link to comment
Share on other sites

i don't think smoothed even works on a tileSprite if you use it initially, never mind changing it later

 

the source says it @extends Phaser.Component.Smoothed

https://github.com/photonstorm/phaser/blob/master/src/gameobjects/TileSprite.js#L50

 

so it could be a PIXI issue.

 

whilst the dirty() approach i used is not a public API, i would raise an issue about the initial value not working

 

however also note if you update the baseTexture (in the sprite example) it affects all sprites using this texture obviously

http://phaser.io/sandbox/OIfuRInI/play

Link to comment
Share on other sites

i don't think smoothed even works on a tileSprite if you use it initially, never mind changing it later

 

the source says it @extends Phaser.Component.Smoothed

https://github.com/photonstorm/phaser/blob/master/src/gameobjects/TileSprite.js#L50

 

so it could be a PIXI issue.

 

whilst the dirty() approach i used is not a public API, i would raise an issue about the initial value not working

 

however also note if you update the baseTexture (in the sprite example) it affects all sprites using this texture obviously

http://phaser.io/sandbox/OIfuRInI/play

What is the solution?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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