package; import flixel.FlxG; import flixel.FlxSprite; import flixel.graphics.frames.FlxAtlasFrames; class Boyfriend extends Character { public function new(x:Float, y:Float) { super(x, y); var tex = FlxAtlasFrames.fromSparrow(AssetPaths.BOYFRIEND__png, AssetPaths.BOYFRIEND__xml); frames = tex; animation.addByPrefix('idle', 'BF idle dance', 24, false); animation.addByPrefix('singUP', 'BF NOTE UP', 24, false); animation.addByPrefix('singLEFT', 'BF NOTE LEFT', 24, false); animation.addByPrefix('singRIGHT', 'BF NOTE RIGHT', 24, false); animation.addByPrefix('singDOWN', 'BF NOTE DOWN', 24, false); animation.addByPrefix('hey', 'BF HEY', 24, false); playAnim('idle'); antialiasing = true; addOffset('idle', -5); addOffset("singUP", -29, 27); addOffset("singRIGHT", -38, -7); addOffset("singLEFT", 12, -6); addOffset("singDOWN", -10, -50); addOffset("hey", 7, 4); } }