mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 10:05:41 -05:00
hair blowing idle loop for week4
This commit is contained in:
parent
7e52a76329
commit
db9d497460
1 changed files with 13 additions and 0 deletions
|
@ -109,9 +109,11 @@ class Character extends FlxSprite
|
||||||
animation.addByIndices('danceLeft', 'GF Dancing Beat Hair blowing CAR', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
animation.addByIndices('danceLeft', 'GF Dancing Beat Hair blowing CAR', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
||||||
animation.addByIndices('danceRight', 'GF Dancing Beat Hair blowing CAR', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24,
|
animation.addByIndices('danceRight', 'GF Dancing Beat Hair blowing CAR', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24,
|
||||||
false);
|
false);
|
||||||
|
animation.addByIndices('idleHair', 'GF Dancing Beat Hair blowing CAR', [10, 11, 12, 25, 26, 27], "", 24, true);
|
||||||
|
|
||||||
addOffset('danceLeft', 0);
|
addOffset('danceLeft', 0);
|
||||||
addOffset('danceRight', 0);
|
addOffset('danceRight', 0);
|
||||||
|
addOffset('idleHair', 0);
|
||||||
|
|
||||||
playAnim('danceRight');
|
playAnim('danceRight');
|
||||||
|
|
||||||
|
@ -198,12 +200,14 @@ class Character extends FlxSprite
|
||||||
// ANIMATION IS CALLED MOM LEFT POSE BUT ITS FOR THE RIGHT
|
// ANIMATION IS CALLED MOM LEFT POSE BUT ITS FOR THE RIGHT
|
||||||
// CUZ DAVE IS DUMB!
|
// CUZ DAVE IS DUMB!
|
||||||
quickAnimAdd('singRIGHT', 'Mom Pose Left');
|
quickAnimAdd('singRIGHT', 'Mom Pose Left');
|
||||||
|
animation.addByIndices('idleHair', "Mom Idle", [10, 11, 12, 13], "", 24, true);
|
||||||
|
|
||||||
addOffset('idle');
|
addOffset('idle');
|
||||||
addOffset("singUP", 14, 71);
|
addOffset("singUP", 14, 71);
|
||||||
addOffset("singRIGHT", 10, -60);
|
addOffset("singRIGHT", 10, -60);
|
||||||
addOffset("singLEFT", 250, -23);
|
addOffset("singLEFT", 250, -23);
|
||||||
addOffset("singDOWN", 20, -160);
|
addOffset("singDOWN", 20, -160);
|
||||||
|
addOffset('idleHair');
|
||||||
|
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
case 'monster':
|
case 'monster':
|
||||||
|
@ -355,6 +359,7 @@ class Character extends FlxSprite
|
||||||
quickAnimAdd('singLEFTmiss', 'BF NOTE LEFT MISS');
|
quickAnimAdd('singLEFTmiss', 'BF NOTE LEFT MISS');
|
||||||
quickAnimAdd('singRIGHTmiss', 'BF NOTE RIGHT MISS');
|
quickAnimAdd('singRIGHTmiss', 'BF NOTE RIGHT MISS');
|
||||||
quickAnimAdd('singDOWNmiss', 'BF NOTE DOWN MISS');
|
quickAnimAdd('singDOWNmiss', 'BF NOTE DOWN MISS');
|
||||||
|
animation.addByIndices('idleHair', 'BF idle dance', [10, 11, 12, 13], "", 24, true);
|
||||||
|
|
||||||
addOffset('idle', -5);
|
addOffset('idle', -5);
|
||||||
addOffset("singUP", -29, 27);
|
addOffset("singUP", -29, 27);
|
||||||
|
@ -365,6 +370,7 @@ class Character extends FlxSprite
|
||||||
addOffset("singRIGHTmiss", -30, 21);
|
addOffset("singRIGHTmiss", -30, 21);
|
||||||
addOffset("singLEFTmiss", 12, 24);
|
addOffset("singLEFTmiss", 12, 24);
|
||||||
addOffset("singDOWNmiss", -11, -19);
|
addOffset("singDOWNmiss", -11, -19);
|
||||||
|
addOffset('idleHair', -5);
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
|
@ -605,6 +611,13 @@ class Character extends FlxSprite
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (curCharacter.endsWith('-car'))
|
||||||
|
{
|
||||||
|
// looping hair anims after idle finished
|
||||||
|
if (!animation.curAnim.name.startsWith('sing') && animation.curAnim.finished)
|
||||||
|
playAnim('idleHair');
|
||||||
|
}
|
||||||
|
|
||||||
switch (curCharacter)
|
switch (curCharacter)
|
||||||
{
|
{
|
||||||
case 'gf':
|
case 'gf':
|
||||||
|
|
Loading…
Reference in a new issue