Sign in to follow this  
Yehuda Katz

Update group's alpha without a delay

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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.