v0.8.0: fixed lightning vfx working incorrectly on the first frame
This commit is contained in:
@@ -137,6 +137,8 @@ public class Lightning extends Group {
|
|||||||
arc2 = new Image(Effects.get(Effects.Type.LIGHTNING));
|
arc2 = new Image(Effects.get(Effects.Type.LIGHTNING));
|
||||||
arc2.origin.set( 0, arc2.height()/2 );
|
arc2.origin.set( 0, arc2.height()/2 );
|
||||||
add( arc2 );
|
add( arc2 );
|
||||||
|
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void alpha(float alpha) {
|
public void alpha(float alpha) {
|
||||||
|
|||||||
Reference in New Issue
Block a user