I have error as in title connected with following code: Can anybody help me with fix it? I will be very grateful.
final Sprite mPocisk = new Sprite(0, 0,this.mPocisk, getVertexBufferObjectManager());
scene.attachChild(mPocisk);
mPocisk.setVisible(false);
final Katapulta S_katapulta_wystrzelona = new Katapulta(10, 300, this.mKatapulta_wystrzelona, getVertexBufferObjectManager());
final Katapulta S_katapulta_zaladowana = new Katapulta(10, 300, this.mKatapulta_zaladowana, getVertexBufferObjectManager()){
@Override
public boolean onAreaTouched(TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY) {
setVisible(false);
S_katapulta_wystrzelona.setVisible(true);
double time = rzut.t;
// I think following code generate error
new CountDownTimer((long) (time*100), 500) {
public void onTick(long millisUntilFinished) {
double time_copy=+0.5;
System.out.println("test");
mPocisk.setPosition((float)rzut.getXfor(time_copy), (float)rzut.getYfor(time_copy));
mPocisk.setVisible(true);
}
public void onFinish() {
}
}.start();
return true;
}
};