dialogues stuff & porting WIP 8
This commit is contained in:
@@ -49,9 +49,11 @@ function close(event) {
|
||||
|
||||
var time:Float = 0;
|
||||
function update(elapsed:Float) {
|
||||
hand.x = 1060 + Math.sin((time += elapsed) * Math.PI * 2) * 12;
|
||||
hand.x -= hand.x % hand.scale.x;
|
||||
hand.y -= hand.y % hand.scale.y;
|
||||
if(hand.visible = dialogueEnded) {
|
||||
hand.x = 1060 + Math.sin((time += elapsed) * Math.PI * 2) * 12;
|
||||
hand.x -= hand.x % hand.scale.x;
|
||||
hand.y -= hand.y % hand.scale.y;
|
||||
}
|
||||
}
|
||||
|
||||
function postPlayBubbleAnim() {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<char name="niko" char="niko" position="middle" />
|
||||
|
||||
<!-- Lines -->
|
||||
<line char="dad" stay="true">
|
||||
<line char="dad">
|
||||
yo its me your enemy! how are you
|
||||
</line>
|
||||
<line char="boyfriend">
|
||||
|
||||
@@ -28,12 +28,6 @@ function create() {
|
||||
dfy = senpaiEvil.y;
|
||||
add(senpaiEvil);
|
||||
|
||||
var white:FlxSprite = new FlxSprite().makeSolid(FlxG.width + 100, FlxG.height + 100, FlxColor.WHITE);
|
||||
white.screenCenter();
|
||||
white.scrollFactor.set();
|
||||
white.alpha = 0;
|
||||
add(white);
|
||||
|
||||
new FlxTimer().start(3.2, function(deadTime:FlxTimer)
|
||||
{
|
||||
FlxG.camera.fade(FlxColor.WHITE, 1.6, false, function() {
|
||||
@@ -42,25 +36,20 @@ function create() {
|
||||
remove(red, true);
|
||||
red.destroy();
|
||||
|
||||
white.alpha = 1;
|
||||
FlxG.camera._fxFadeAlpha = 1;
|
||||
});
|
||||
});
|
||||
scream = FlxG.sound.play(Paths.sound('cutscenes/weeb/Senpai_Dies'), 1, false, null, true, function()
|
||||
{
|
||||
new FlxTimer().start(0.2, function(swagTimer:FlxTimer) {
|
||||
white.alpha -= 0.15;
|
||||
FlxG.camera._fxFadeAlpha -= 0.15;
|
||||
|
||||
if(white.alpha > 0) swagTimer.reset();
|
||||
if(FlxG.camera._fxFadeAlpha > 0) swagTimer.reset();
|
||||
else {
|
||||
remove(white, true);
|
||||
white.destroy();
|
||||
|
||||
camHUD.visible = true;
|
||||
self.startDialogue("songs/" + PlayState.instance.SONG.meta.name.toLowerCase() + "/creepyDialogue.xml", self.close);
|
||||
}
|
||||
});
|
||||
|
||||
FlxG.camera.fade(FlxColor.WHITE, 0.0001, true);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user