2022-03-08 03:13:53 -05:00
|
|
|
package funkin;
|
2020-10-30 20:09:33 -04:00
|
|
|
|
|
|
|
import flixel.FlxSprite;
|
|
|
|
import flixel.graphics.frames.FlxAtlasFrames;
|
|
|
|
|
|
|
|
class MenuCharacter extends FlxSprite
|
|
|
|
{
|
2023-01-22 22:25:45 -05:00
|
|
|
public var character:String;
|
2020-10-30 20:09:33 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
public function new(x:Float, character:String = 'bf')
|
|
|
|
{
|
|
|
|
super(x);
|
2020-10-30 20:09:33 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
this.character = character;
|
2020-10-30 20:09:33 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
var suffix:String = character;
|
2022-08-25 01:35:47 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
if (character != "darnell" && character != "nene") suffix = "characters";
|
2022-08-25 01:35:47 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
var tex = Paths.getSparrowAtlas('campaign_menu_UI_' + suffix);
|
|
|
|
frames = tex;
|
2020-10-30 20:09:33 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
trace(character);
|
2022-08-25 01:35:47 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
animation.addByPrefix('bf', "BF idle dance white", 24);
|
|
|
|
animation.addByPrefix('bfConfirm', 'BF HEY!!', 24, false);
|
|
|
|
animation.addByPrefix('gf', "GF Dancing Beat WHITE", 24);
|
|
|
|
animation.addByPrefix('dad', "Dad idle dance BLACK LINE", 24);
|
|
|
|
animation.addByPrefix('spooky', "spooky dance idle BLACK LINES", 24);
|
|
|
|
animation.addByPrefix('pico', "Pico Idle Dance", 24);
|
|
|
|
animation.addByPrefix('mom', "Mom Idle BLACK LINES", 24);
|
|
|
|
animation.addByPrefix('parents-christmas', "Parent Christmas Idle", 24);
|
|
|
|
animation.addByPrefix('senpai', "SENPAI idle Black Lines", 24);
|
|
|
|
animation.addByPrefix('tankman', "Tankman Menu BLACK", 24);
|
|
|
|
animation.addByPrefix('darnell', "Darnell Black Lines To Scale", 24);
|
|
|
|
animation.addByPrefix('nene', "Nene Black Lines To Scale", 24);
|
|
|
|
// Parent Christmas Idle
|
2020-10-30 20:09:33 -04:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
animation.play(character);
|
|
|
|
updateHitbox();
|
|
|
|
}
|
2020-10-30 20:09:33 -04:00
|
|
|
}
|