changing alpha with Flxtween crash on android

34 views
Skip to first unread message

J-L MG

unread,
Oct 24, 2015, 11:45:27 PM10/24/15
to HaxeFlixel
I'm using:
- flixel-dev 
- lime 2.6.8
- openfl 3.3.8

When I tween the alpha to 0 of a Flxsprite it crashes everytime, the same code used to work, here is the code:

FlxTween.tween(this, { y: -100, alpha:0 }, 2, { type:FlxTween.ONESHOT, onComplete:backTween } );

Thanks for your help.

SruloArt

unread,
Oct 25, 2015, 9:48:56 AM10/25/15
to HaxeFlixel
* If you're positive it used to work, open an issue over the Github repo.

* If the zeroed alpha is causing a null somewhere, that would explain the crash. Try using a very small value instead of 0 (like, 0.001).

J-L MG

unread,
Oct 26, 2015, 2:23:38 AM10/26/15
to HaxeFlixel
Yes it worked before but that's some versions ago it crash with any value now, I checked github issues and there is a similar bug: https://github.com/HaxeFlixel/flixel/issues/1609

I guess we wait till it's fixed, for now I'll use: 
this.alpha = this.alpha - 0.02;
in FSM update.
Reply all
Reply to author
Forward
0 new messages