Revert "lots of stuff"

This reverts commit 00687fb1b6.
This commit is contained in:
Spel0
2021-07-13 13:50:51 +03:00
parent 00687fb1b6
commit 3d01f74c10
6 changed files with 48 additions and 20 deletions

View File

@ -171,8 +171,6 @@ class PlayState extends MusicBeatState
var notesHitArray:Array<Date> = [];
var currentFrames:Int = 0;
var idleToBeat:Bool = true; // change if bf and dad would idle to the beat of the song
var idleBeat:Int = 1; // how frequently bf and dad would play their idle animation(1 - every beat, 2 - every 2 beats and so on)
public var dialogue:Array<String> = ['dad:blah blah blah', 'bf:coolswag'];
@ -4175,9 +4173,8 @@ class PlayState extends MusicBeatState
// Conductor.changeBPM(SONG.bpm);
// Dad doesnt interupt his own notes
if ((SONG.notes[Math.floor(curStep / 16)].mustHitSection || !dad.animation.curAnim.name.startsWith("sing")) && dad.curCharacter != 'gf')
if (curBeat % idleBeat == 0)
dad.dance(idleToBeat);
if (SONG.notes[Math.floor(curStep / 16)].mustHitSection && dad.curCharacter != 'gf')
dad.dance();
}
// FlxG.log.add('change bpm' + SONG.notes[Std.int(curStep / 16)].changeBPM);
wiggleShit.update(Conductor.crochet);
@ -4209,9 +4206,9 @@ class PlayState extends MusicBeatState
gf.dance();
}
if (!boyfriend.animation.curAnim.name.startsWith("sing") && curBeat % idleBeat == 0)
if (!boyfriend.animation.curAnim.name.startsWith("sing"))
{
boyfriend.playAnim('idle', idleToBeat);
boyfriend.playAnim('idle');
}
/*if (!dad.animation.curAnim.name.startsWith("sing"))