I only use the Dev version, unfortunately, I can not say about the situation with the Master.
Below is a piece of code that generates the error (rarely, but guaranteed). I can make a video, if necessary.
////////////////////////////////////////////////////////////////////////////////////////////////////
public function AddBigMessage(_x:Float, _y:Float, _txt:String = "", _ico:String = null)
{
var duration:Float = 1.25;
var path:Float = (145 + _txt.length * 2) * duration;
var scale:Float = 1.25;
var ico:FlxBitmapTextButton = cast (recycle(FlxBitmapTextButton), FlxBitmapTextButton); //recycle(PxButton);
Reg.PlaySound("Message");
ResetCloudObj(ico);
ico.label = new FlxBitmapText(MessageFont);
ico.label.scale.set(3.0, 3.0);
ico.label.text = _txt;
ico.label.useTextColor = false;
ico.label.antialiasing = true;
ico.x = _x;
ico.y = _y;
ico.makeGraphic(2, 2, 0x00000000);
ico.label.offset.set(ico.label.width / 2, 20);
FlxTween.tween(ico, { alpha: 1.0 }, duration, { type: FlxTween.ONESHOT } ).then( // in fact, this code does not touch the alpha of the label, so the label is always non-transparent
FlxTween.tween(ico, { alpha: 0.0, y: _y - path }, duration * 1.1, { type: FlxTween.ONESHOT, onComplete: cast function() { ico.kill(); ico.label.destroy(); } } ) );
FlxTween.tween(ico.label.scale, { x: scale, y: scale }, duration * 1.5, { type: FlxTween.ONESHOT, ease: FlxEase.elasticOut } );
}
////////////////////////////////////////////////////////////////////////////////////////////////////
private function ResetCloudObj(_ico:FlxBitmapTextButton)
{
_ico.alpha = 1.0;
_ico.scale.set(0.1, 0.1);
_ico.centerOffsets();
_ico.acceleration.set(0, 0);
_ico.velocity.set(0, 0);
_ico.label = null;
}
This function displays a message with the effects (scale, then move up with the disappearance by alpha -> 0).
Layer.AddBigMessage(Reg._X + 512, Reg._Y + 384, message);
Sometimes, very rarely, the message is trying to fly down and right (because the velocity at this time becomes equal to the coordinates), but moving Tween trying to return it to the starting position, taking into account shifts in Tween.
This function can be called many times in a row, and screen may have a lot of messages without any issues - so the number of messages does not affect the issue rate.