java - Glitch with tween engine and libgdx -


i'm having barely noticeable annoying , random glitch tweening actor tween engine. actor group image. tween linear right of screen left , repeating.

fps showing 60.

any idea?

this code:

public class backgroundscreen extends abstractscreen {  public backgroundscreen() {        stage = new stage();   stage.setviewport(properties.virtual_width, properties.virtual_height, false);   createrock();  }  private void createrock() {    rock = new gameelement(atlas.createsprite("obj-stone"));    rock.setx(properties.virtual_width);    rock.sety(100);    float duration=5f;    tween.to(rock, actoraccessor.position_xy, duration/2).ease(linear.inout).target(-rock.getwidth(), rock.gety()).repeat(tween.infinity, 0).start(resources.tweenmanager);    stage.addactor(rock); }  @override public void render(float delta) {   gdx.gl.glclear(gl10.gl_color_buffer_bit);   resources.tweenmanager.update(delta);   stage.act(delta);   stage.draw(); }  } 

update

this link youtube video effect. 2 considerations:

http://www.youtube.com/watch?v=0pvjbgfciyo

a) when screenrecording video, glich more pronounced can watch. b) can't see glitch on galaxy nexus. c) did same tween libgdx actions , glitch same d) somehow related pc.

you should play tween equation. off bet i'd linear.inout causing sprite glitch. maybye try running linear.in trick.


Comments

Popular posts from this blog

c++ - End of file on pipe magic during open -

basic authentication with http post params android -

data.table making a copy of table in R -