-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1053a6c
commit 4065896
Showing
16 changed files
with
2,090 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
function onCreate() -- Add The Flicker | ||
|
||
makeAnimatedLuaSprite('BendyFlicker', 'BendyFlicker', -90, -50) | ||
|
||
-- Properties | ||
setScrollFactor('BendyFlicker', 0, 0) | ||
scaleObject('BendyFlicker', 1.5, 1.5) | ||
|
||
-- Animations | ||
addAnimationByPrefix('BendyFlicker', 'flick', 'flicker', 24, false) | ||
|
||
end | ||
|
||
function onEvent(name, value1, value2) | ||
if name == 'Flicker' then | ||
-- runTimer('flicked', 1.5, 1) | ||
addLuaSprite('BendyFlicker', true) | ||
objectPlayAnimation('flick', true) | ||
end | ||
end | ||
|
||
function onTimerCompleted(tag, loops, loopsLeft) | ||
if tag == 'flicked' then | ||
setProperty('BendyFlicker.visible', false) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Flicker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import Std; | ||
var blackJumpscare:FlxSprite; | ||
var bfr:String; | ||
var bfg:String; | ||
var bfb:String; | ||
var dadr:String; | ||
var dadg:String; | ||
var dadb:String; | ||
|
||
function onCreate() | ||
{ | ||
blackJumpscare = new FlxSprite(-FlxG.width * FlxG.camera.zoom, | ||
-FlxG.height * FlxG.camera.zoom).makeGraphic(FlxG.width * 3, FlxG.height * 3, FlxColor.BLACK); | ||
blackJumpscare.scrollFactor.set(); | ||
blackJumpscare.alpha = 0; | ||
game.addBehindGF(blackJumpscare); | ||
bfr = game.playstate.bf.healthColorArray[0]; | ||
bfg = game.playstate.bf.healthColorArray[1]; | ||
bfb = game.playstate.bf.healthColorArray[2]; | ||
dadr = game.playstate.dad.healthColorArray[0]; | ||
dadg = game.playstate.dad.healthColorArray[1]; | ||
dadb = game.playstate.dad.healthColorArray[2]; | ||
} | ||
|
||
function onEvent(name:String, value1:String, value2:String) | ||
{ | ||
var fVal2:Float = Std.parseFloat(value2); | ||
|
||
if (name == 'neoneffect') | ||
{ | ||
if (value1 == 'in') | ||
{ | ||
FlxTween.tween(blackJumpscare, {alpha: 1}, fVal2, {ease: FlxEase.sineInOut}); | ||
|
||
FlxTween.tween(game.boyfriend.colorTransform, {blueOffset: bfb, redOffset: bfr, greenOffset: bfg}, fVal2, {ease: FlxEase.sineInOut}); | ||
FlxTween.tween(game.dad.colorTransform, {blueOffset: dadb, redOffset: dadr, greenOffset: dadg}, fVal2, {ease: FlxEase.sineInOut}); | ||
if (game.gf != null) | ||
FlxTween.tween(game.gf.colorTransform, {blueOffset: 255, redOffset: 255, greenOffset: 255}, fVal2, {ease: FlxEase.sineInOut}); | ||
} else if (value1 == 'out') | ||
{ | ||
FlxTween.tween(blackJumpscare, {alpha: 0}, fVal2, {ease: FlxEase.sineInOut}); | ||
|
||
FlxTween.tween(game.boyfriend.colorTransform, {blueOffset: 0, redOffset: 0, greenOffset: 0}, fVal2, {ease: FlxEase.sineInOut}); | ||
FlxTween.tween(game.dad.colorTransform, {blueOffset: 0, redOffset: 0, greenOffset: 0}, fVal2, {ease: FlxEase.sineInOut}); | ||
if (game.gf != null) | ||
FlxTween.tween(game.gf.colorTransform, {blueOffset: 0, redOffset: 0, greenOffset: 0}, fVal2, {ease: FlxEase.sineInOut}); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
UHHHH COOL NEON THINGY | ||
|
||
Value 1: in or out | ||
Value 2: Fade In/Out Time | ||
|
Oops, something went wrong.