mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-05 06:14:36 +00:00
7e52a76329
dad, pico looping idle fixed, they now dance on beat instead also adds animation.finish() after initial anims, so their anims on create don't get in the way of anims during countdown commented-out idea for senpai idle, as it's currently 2 beats long but not properly on beat
32 lines
781 B
Haxe
32 lines
781 B
Haxe
package;
|
|
|
|
import flixel.FlxSprite;
|
|
import flixel.graphics.frames.FlxAtlasFrames;
|
|
|
|
class BackgroundDancer extends FlxSprite
|
|
{
|
|
public function new(x:Float, y:Float)
|
|
{
|
|
super(x, y);
|
|
|
|
frames = Paths.getSparrowAtlas("limo/limoDancer");
|
|
animation.addByIndices('danceLeft', 'bg dancer sketch PINK', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
|
animation.addByIndices('danceRight', 'bg dancer sketch PINK', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false);
|
|
animation.play('danceLeft');
|
|
animation.finish();
|
|
antialiasing = true;
|
|
}
|
|
|
|
var danceDir:Bool = false;
|
|
|
|
public function dance():Void
|
|
{
|
|
danceDir = !danceDir;
|
|
|
|
if (danceDir)
|
|
animation.play('danceRight', true);
|
|
else
|
|
animation.play('danceLeft', true);
|
|
}
|
|
}
|