@@ -55,7 +55,7 @@ class PlayState extends FlxState
5555
5656 _stars = new FlxStarField2D (0 , 0 , FlxG .width , FlxG .height , 60 );
5757 _stars .bgColor = 0x0 ;
58- _stars .scrollFactor .set ();
58+ _stars .scrollFactor .zero ();
5959 _stars .setStarSpeed (0 , 0 );
6060 add (_stars );
6161
@@ -129,20 +129,20 @@ class PlayState extends FlxState
129129
130130 _txtScore = new FlxText (FlxG .width - 202 , 2 , 200 , " 0" , 8 );
131131 _txtScore .alignment = FlxTextAlign .RIGHT ;
132- _txtScore .scrollFactor .set ();
132+ _txtScore .scrollFactor .zero ();
133133 add (_txtScore );
134134
135135 _healthBar = new FlxBar (2 , 2 , FlxBarFillDirection .LEFT_TO_RIGHT , 90 , 6 , _sprPlayer , " health" , 0 , 10 , true );
136136 _healthBar .createGradientBar ([0xcc111111 ], [0xffff0000 , 0xff00ff00 ], 1 , 0 , true , 0xcc333333 );
137- _healthBar .scrollFactor .set ();
137+ _healthBar .scrollFactor .zero ();
138138 add (_healthBar );
139139
140140 var shine : FlxSprite = FlxGradient .createGradientFlxSprite (Std .int (_healthBar .width ), Std .int (_healthBar .height ),
141141 [0x66ffffff , 0xffffffff , 0x66ffffff , 0x11ffffff , 0x0 ]);
142142 shine .alpha = .5 ;
143143 shine .x = _healthBar .x ;
144144 shine .y = _healthBar .y ;
145- shine .scrollFactor .set ();
145+ shine .scrollFactor .zero ();
146146 add (shine );
147147
148148 FlxG .camera .setScrollBoundsRect (_map .x , _map .y , _map .width , _map .height , true );
0 commit comments