I have been figuring out a way to implement an infinitely repeating parallax.
I have tried using :
CCSprite background = CCSprite.sprite("background_island.png");
CCTexParams params = new
CCTexParams(GL10.GL_LINEAR,GL10.GL_LINEAR,GL10.GL_REPEAT,GL10.GL_REPEAT);
background.getTexture().setTexParameters(params);
But it only extends the background in 1 direction. I guess I have to use 2
sprites, such that as soon as 1st finishes, the other starts and vice versa,
but I'm stuck with the implementation.
Original issue reported on code.google.com by s.ve...@apostek.com on 21 Dec 2011 at 7:27
Original issue reported on code.google.com by
s.ve...@apostek.com
on 21 Dec 2011 at 7:27