for opponent
This commit is contained in:
parent
91a6b772ff
commit
fac055c9a1
@ -452,7 +452,7 @@ class Character extends FlxSprite
|
|||||||
/**
|
/**
|
||||||
* FOR GF DANCING SHIT
|
* FOR GF DANCING SHIT
|
||||||
*/
|
*/
|
||||||
public function dance(forced:Bool = false)
|
public function dance(forced:Bool = false, altAnim:Bool = false)
|
||||||
{
|
{
|
||||||
if (!debugMode)
|
if (!debugMode)
|
||||||
{
|
{
|
||||||
@ -476,7 +476,10 @@ class Character extends FlxSprite
|
|||||||
else
|
else
|
||||||
playAnim('danceLeft');
|
playAnim('danceLeft');
|
||||||
default:
|
default:
|
||||||
playAnim('idle', forced);
|
if (altAnim && animation.getByName('idle-alt') != null)
|
||||||
|
playAnim('idle-alt', forced);
|
||||||
|
else
|
||||||
|
playAnim('idle', forced);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4594,7 +4594,7 @@ class PlayState extends MusicBeatState
|
|||||||
// Dad doesnt interupt his own notes
|
// Dad doesnt interupt his own notes
|
||||||
if ((!dad.animation.curAnim.name.startsWith("sing")) && dad.curCharacter != 'gf')
|
if ((!dad.animation.curAnim.name.startsWith("sing")) && dad.curCharacter != 'gf')
|
||||||
if ((curBeat % idleBeat == 0 || !idleToBeat) || dad.curCharacter == "spooky")
|
if ((curBeat % idleBeat == 0 || !idleToBeat) || dad.curCharacter == "spooky")
|
||||||
dad.dance(idleToBeat);
|
dad.dance(idleToBeat, SONG.notes[Math.floor(curStep / 16)].altAnim);
|
||||||
}
|
}
|
||||||
// FlxG.log.add('change bpm' + SONG.notes[Std.int(curStep / 16)].changeBPM);
|
// FlxG.log.add('change bpm' + SONG.notes[Std.int(curStep / 16)].changeBPM);
|
||||||
wiggleShit.update(Conductor.crochet);
|
wiggleShit.update(Conductor.crochet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user