using FlxTimer for flickering