mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-02-04 10:47:57 +00:00
Setting a simple mask test
This commit is contained in:
parent
82eea221d8
commit
a6f8cf0141
|
@ -22,15 +22,18 @@ class FlxAnimateTest extends MusicBeatState
|
||||||
{
|
{
|
||||||
super.create();
|
super.create();
|
||||||
|
|
||||||
sprite = new FlxAtlasSprite(0, 0, 'assets/images/freeplay/freeplay-boyfriend'); // I suppose a specific atlas to test should go in here
|
sprite = new FlxAtlasSprite(0, 0, 'assets/images/charSelect/maskTest');
|
||||||
// Doesn't input anything, How does AtlasSprite work??? -Cheems
|
|
||||||
add(sprite);
|
add(sprite);
|
||||||
camera.follow(sprite);
|
sprite.playAnimation(null, false, false, true);
|
||||||
sprite.playAnimation(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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.anim.isPlaying) ? sprite.anim.pause() : sprite.playAnimation(null, false, false, true));
|
||||||
|
|
||||||
|
if (FlxG.keys.anyJustPressed([A, LEFT])) sprite.anim.curFrame--;
|
||||||
|
if (FlxG.keys.anyJustPressed([D, RIGHT])) sprite.anim.curFrame++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue