Commit 7c28d51f authored by Aneta Steimarova's avatar Aneta Steimarova

#953 Changed cable texture to fit to cut animation

parent f72d4211
......@@ -121,7 +121,7 @@ public class BonusCableGroup extends Group {
Image tweezers = new Image(safeGame.getScreenTextureRegion(SafeAssets.TWEEZERS1));
tweezers.setSize(TWEEZERS_WIDTH, TWEEZERS_HEIGHT);
float tweezersXPos = cable.getX() + cable.getWidth();
float tweezersYPos = cable.getY() - tweezers.getHeight()/2 + 30;
float tweezersYPos = cable.getY() + cable.getHeight()/2 - tweezers.getHeight()/2;
tweezers.setPosition(tweezersXPos, tweezersYPos);
addActor(tweezers);
SequenceAction tweezersAnimation = Actions.sequence();;
......@@ -139,7 +139,7 @@ public class BonusCableGroup extends Group {
sa.addAction(Actions.sequence(Actions.run(new Runnable() {
@Override
public void run() {
tweezers.addAction(Actions.moveTo(tweezersXPos - cable.getWidth()/2, tweezersYPos, 1f));
tweezers.addAction(Actions.moveTo(tweezersXPos - cable.getWidth()/2 - 10, tweezersYPos, 1f));
}
}), Actions.delay(1f),
tweezersAnimation,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment