mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-29 10:13:32 +00:00
snds effects
This commit is contained in:
parent
dbab5a912d
commit
2d16aab488
|
@ -100,8 +100,10 @@ class GameOverSubstate extends MusicBeatSubstate
|
||||||
add(boyfriend);
|
add(boyfriend);
|
||||||
boyfriend.resetCharacter();
|
boyfriend.resetCharacter();
|
||||||
|
|
||||||
if (animationSuffix == "" && FlxG.random.bool((1 / 4000) * 100))
|
if (boyfriend.characterId == "bf" && animationSuffix == "" && FlxG.random.bool((1 / 4000) * 100))
|
||||||
{
|
{
|
||||||
|
FlxG.sound.play(Paths.sound("fakeout_death"));
|
||||||
|
|
||||||
var bfFake:FlxAtlasSprite = new FlxAtlasSprite(boyfriend.x - 440, boyfriend.y - 240, Paths.animateAtlas("characters/bfFakeOut", "shared"),);
|
var bfFake:FlxAtlasSprite = new FlxAtlasSprite(boyfriend.x - 440, boyfriend.y - 240, Paths.animateAtlas("characters/bfFakeOut", "shared"),);
|
||||||
add(bfFake);
|
add(bfFake);
|
||||||
bfFake.playAnimation("");
|
bfFake.playAnimation("");
|
||||||
|
@ -109,11 +111,17 @@ class GameOverSubstate extends MusicBeatSubstate
|
||||||
bfFake.visible = false;
|
bfFake.visible = false;
|
||||||
boyfriend.visible = true;
|
boyfriend.visible = true;
|
||||||
boyfriend.playAnimation('firstDeath', true, true);
|
boyfriend.playAnimation('firstDeath', true, true);
|
||||||
|
// Play the "blue balled" sound. May play a variant if one has been assigned.
|
||||||
|
playBlueBalledSFX();
|
||||||
};
|
};
|
||||||
boyfriend.visible = false;
|
boyfriend.visible = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
boyfriend.playAnimation('firstDeath', true, true);
|
boyfriend.playAnimation('firstDeath', true, true);
|
||||||
|
// Play the "blue balled" sound. May play a variant if one has been assigned.
|
||||||
|
playBlueBalledSFX();
|
||||||
|
}
|
||||||
|
|
||||||
// Assign a camera follow point to the boyfriend's position.
|
// Assign a camera follow point to the boyfriend's position.
|
||||||
cameraFollowPoint = new FlxObject(PlayState.instance.cameraFollowPoint.x, PlayState.instance.cameraFollowPoint.y, 1, 1);
|
cameraFollowPoint = new FlxObject(PlayState.instance.cameraFollowPoint.x, PlayState.instance.cameraFollowPoint.y, 1, 1);
|
||||||
|
@ -134,9 +142,6 @@ class GameOverSubstate extends MusicBeatSubstate
|
||||||
|
|
||||||
// The conductor now represents the BPM of the game over music.
|
// The conductor now represents the BPM of the game over music.
|
||||||
Conductor.songPosition = 0;
|
Conductor.songPosition = 0;
|
||||||
|
|
||||||
// Play the "blue balled" sound. May play a variant if one has been assigned.
|
|
||||||
playBlueBalledSFX();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override function update(elapsed:Float)
|
override function update(elapsed:Float)
|
||||||
|
|
Loading…
Reference in a new issue