Jump to content

Update group's alpha without a delay


Yehuda Katz
 Share

Recommended Posts

Hello,

Is there any way to force Phase to update texture without a delay? Shortly said, I have issue with Phaser.Group.generateTexture() method:

1) Lets say you have group, which fade out to alpha = 0.

2) Later you want set group back to alpha = 1 and

3) generate sprite this.game.add.sprite(0, 0, group.generateTexture())

RESULT: you will get empty sprite...

However, if I do lets say 100ms delay, everything works as expected...

If I fade out group to 0.1 instead of 0, I am getting texture with 0.1 transparency, which means that PIXI needs time (one tick?) to actually update alpha.

QUESTION: Is there any way to fix this problem?

Thanks

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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