No Title
titanicfanatic

I'm having a strange issue with fading in a text sprite where it does not fully fade in. The following is the code im using to fade in the text sprite:

this.losNumerosTextSprite.fadeIn(0.25);

This works just fine on Chrome/Firefox in Linux, but not on Windows, iPad or Adroid. The fade works correctly when applied to an image sprite, but not my text sprite and only seems to be an issue with Windows, iOS and Android.

I've been playing around with this for hours and just can't figure out why it won't work properly with text sprites. Any ideas?

All 3 Comments
foxcode

Hi titanicfanatic

I have reproduced the issue, looks like a bug in wade to me. I also note that it appears to work fine when the layer mode is set to 2d, it's webgl that is causing the problem. I will pass this along, thanks for pointing it out :)

titanicfanatic

indeed, setting the rendering mode to 2d fixes the issue.

wade.setLayerRenderMode(5, '2d');

Thanks for pointing me in the right direction.

Gio

I'd like to confirm that this will be fixed in the next release.

In the meantime, if you don't want to set your layer render mode to 2d (which may slow things down and prevent you from using shaders among other things), a possibly better workaround would be:

myTextSprite.setVisible(true);
myTextSprite.cache();
myTextSprite.fadeIn();

 

Post a reply
Add Attachment
Submit Reply
Login to Reply