-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
might destroy someones workflow lmao
- Loading branch information
Yoshubs
authored and
Yoshubs
committed
Oct 5, 2021
1 parent
8abc649
commit b1ddd7c
Showing
1 changed file
with
39 additions
and
0 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,39 @@ | ||
package gameObjects.userInterface.notes; | ||
|
||
import meta.data.dependency.FNFSprite; | ||
|
||
/** | ||
Create the note splashes in week 7 whenever you get a sick! | ||
**/ | ||
class NoteSplash extends FNFSprite | ||
{ | ||
public function new(noteData:Int) | ||
{ | ||
super(x, y); | ||
visible = false; | ||
alpha = 0.6; | ||
} | ||
|
||
override function update(elapsed:Float) | ||
{ | ||
super.update(elapsed); | ||
|
||
// kill the note splash if it's done | ||
if (animation.finished) | ||
{ | ||
// set the splash to invisible | ||
if (visible) | ||
visible = false; | ||
} | ||
// | ||
} | ||
|
||
override public function playAnim(AnimName:String, Force:Bool = false, Reversed:Bool = false, Frame:Int = 0) | ||
{ | ||
// make sure the animation is visible | ||
if (!Init.trueSettings.get('Disable Note Splashes')) | ||
visible = true; | ||
|
||
super.playAnim(AnimName, Force, Reversed, Frame); | ||
} | ||
} |