Skip to content

Commit 2c0411d

Browse files
JugieNoobHundrec
authored andcommitted
better blazin' script
1 parent 751ad4d commit 2c0411d

File tree

1 file changed

+4
-36
lines changed

1 file changed

+4
-36
lines changed

preload/scripts/songs/blazin.hxc

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,16 @@ class BlazinSong extends Song
1818
{
1919
super('blazin');
2020

21-
this.hasHidden = false;
2221
this.hasPlayedCutscene = false;
2322
}
2423

2524
function onCreate(event:ScriptEvent):Void
2625
{
2726
super.onCreate(event);
2827

29-
this.hasHidden = false;
3028
this.hasPlayedCutscene = false;
3129
}
3230

33-
function onDestroy(event:ScriptEvent):Void
34-
{
35-
super.onDestroy(event);
36-
37-
this.hasHidden = false;
38-
}
39-
40-
function onNoteHit(event:HitNoteScriptEvent):Void
41-
{
42-
super.onNoteHit(event);
43-
}
44-
4531
public function listDifficulties(variationId:String, variationIds:Array<String>, showLocked:Bool):Array<String>
4632
{
4733
if (showLocked || Save.instance.hasBeatenLevel('weekend1'))
@@ -53,31 +39,13 @@ class BlazinSong extends Song
5339
return [];
5440
}
5541

56-
var hasHidden = false;
5742
var hasPlayedCutscene:Bool = false;
5843

59-
function onUpdate(event:ScriptEvent):Void
44+
function onCountdownStart(event)
6045
{
61-
super.onUpdate(event);
62-
63-
if (!this.hasHidden)
64-
{
65-
this.hasHidden = true;
66-
hideOpponentStrumline();
67-
centerPlayerStrumline();
68-
}
69-
}
70-
71-
function hideOpponentStrumline()
72-
{
73-
var opponentStrumline:FlxSprite = PlayState.instance.opponentStrumline;
74-
if (opponentStrumline != null)
75-
{
76-
for (arrow in opponentStrumline.members)
77-
{
78-
arrow.visible = false;
79-
}
80-
}
46+
super.onCountdownStart(event);
47+
PlayState.instance.opponentStrumline.visible = false;
48+
centerPlayerStrumline();
8149
}
8250

8351
function centerPlayerStrumline()

0 commit comments

Comments
 (0)