mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-09 16:24:42 +00:00
darnell looping and sustain note holding anim stuf
This commit is contained in:
parent
ab501cc533
commit
2705ae3e16
|
@ -500,6 +500,16 @@ class Character extends FlxSprite
|
||||||
loadOffsetFile(curCharacter);
|
loadOffsetFile(curCharacter);
|
||||||
|
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
|
|
||||||
|
animation.finishCallback = function(animShit:String)
|
||||||
|
{
|
||||||
|
if (animShit.startsWith('sing'))
|
||||||
|
{
|
||||||
|
// loop the anim
|
||||||
|
// this way is a little verbose, but basically sets it to the same animation, but 8 frames before finish
|
||||||
|
playAnim(animShit, true, false, animation.getByName(animShit).frames.length - 8);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dance();
|
dance();
|
||||||
|
|
|
@ -2101,16 +2101,19 @@ class PlayState extends MusicBeatState
|
||||||
if (daNote.altNote)
|
if (daNote.altNote)
|
||||||
altAnim = '-alt';
|
altAnim = '-alt';
|
||||||
|
|
||||||
switch (Math.abs(daNote.noteData))
|
if (!daNote.isSustainNote)
|
||||||
{
|
{
|
||||||
case 0:
|
switch (Math.abs(daNote.noteData))
|
||||||
dad.playAnim('singLEFT' + altAnim, true);
|
{
|
||||||
case 1:
|
case 0:
|
||||||
dad.playAnim('singDOWN' + altAnim, true);
|
dad.playAnim('singLEFT' + altAnim, true);
|
||||||
case 2:
|
case 1:
|
||||||
dad.playAnim('singUP' + altAnim, true);
|
dad.playAnim('singDOWN' + altAnim, true);
|
||||||
case 3:
|
case 2:
|
||||||
dad.playAnim('singRIGHT' + altAnim, true);
|
dad.playAnim('singUP' + altAnim, true);
|
||||||
|
case 3:
|
||||||
|
dad.playAnim('singRIGHT' + altAnim, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dad.holdTimer = 0;
|
dad.holdTimer = 0;
|
||||||
|
|
Loading…
Reference in a new issue