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();
|
||||
|
||||
sprite = new FlxAtlasSprite(0, 0, 'assets/images/freeplay/freeplay-boyfriend'); // I suppose a specific atlas to test should go in here
|
||||
// Doesn't input anything, How does AtlasSprite work??? -Cheems
|
||||
sprite = new FlxAtlasSprite(0, 0, 'assets/images/charSelect/maskTest');
|
||||
add(sprite);
|
||||
camera.follow(sprite);
|
||||
sprite.playAnimation(null);
|
||||
sprite.playAnimation(null, false, false, true);
|
||||
}
|
||||
|
||||
public override function update(elapsed:Float):Void
|
||||
{
|
||||
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