mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-26 06:09:02 +00:00
Prepare the FlxAnimate bizz
This commit is contained in:
parent
eb5bf449a4
commit
4dad17d241
|
|
@ -22,28 +22,14 @@ class FlxAnimateTest extends MusicBeatState
|
||||||
{
|
{
|
||||||
super.create();
|
super.create();
|
||||||
|
|
||||||
sprite = new FlxAtlasSprite(0, 0, 'shared:assets/shared/images/characters/tankman');
|
sprite = new FlxAtlasSprite(0, 0, 'assets/images/freeplay/freeplay-boyfriend'); // I suppose a specific atlas to test should go in here
|
||||||
add(sprite);
|
|
||||||
|
|
||||||
sprite.playAnimation('idle');
|
add(sprite);
|
||||||
|
sprite.anim.play("Boyfriend DJ");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function update(elapsed:Float):Void
|
public override function update(elapsed:Float):Void
|
||||||
{
|
{
|
||||||
super.update(elapsed);
|
super.update(elapsed);
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.SPACE) sprite.playAnimation('idle');
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.W) sprite.playAnimation('singUP');
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.A) sprite.playAnimation('singLEFT');
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.S) sprite.playAnimation('singDOWN');
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.D) sprite.playAnimation('singRIGHT');
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.J) sprite.playAnimation('hehPrettyGood');
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.K) sprite.playAnimation('ugh');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue