@@ -18,30 +18,16 @@ class BlazinSong extends Song
18
18
{
19
19
super('blazin');
20
20
21
- this.hasHidden = false;
22
21
this.hasPlayedCutscene = false;
23
22
}
24
23
25
24
function onCreate(event:ScriptEvent):Void
26
25
{
27
26
super.onCreate(event);
28
27
29
- this.hasHidden = false;
30
28
this.hasPlayedCutscene = false;
31
29
}
32
30
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
-
45
31
public function listDifficulties(variationId:String, variationIds:Array<String>, showLocked:Bool):Array<String>
46
32
{
47
33
if (showLocked || Save.instance.hasBeatenLevel('weekend1'))
@@ -53,31 +39,13 @@ class BlazinSong extends Song
53
39
return [];
54
40
}
55
41
56
- var hasHidden = false;
57
42
var hasPlayedCutscene:Bool = false;
58
43
59
- function onUpdate (event:ScriptEvent):Void
44
+ function onCountdownStart (event)
60
45
{
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();
81
49
}
82
50
83
51
function centerPlayerStrumline()
0 commit comments