Here is the effect (Effects.java)
public static void init() {
Tween.registerAccessor(Sprite.class, new SpriteAccessor());
Tween.registerAccessor(Label.class, new FontAccessor());
spriteManager = new TweenManager();
fontManager = new TweenManager();
}
public static void updateSpriteManager(float delta) {
spriteManager.update(delta);
}
public static void shrink(final Sprite sprite, int scaleXY, float duration){
Tween
.to(sprite, SpriteAccessor.SCALE, duration)
.target(scaleXY)
.start(spriteManager);
}
And I use it on GameScreen.java’s show method
Effects.init();
Effects.shrink(centerObject, 1, 3f);
And on the render method in GameScreen.java I have
Effects.updateSpriteManager(delta);
But when I run it on Desktop it works perfectly. The problem occurs only when running on mobile so I’m thinking that there shouldn’t be any flaw in the code? Maybe?