Tag Info

New answers tagged

0

I use that for full screen autoParallaxBackground.attachParallaxEntity(new ParallaxEntity(0.0f, new Sprite(0, 0, camera.getWidth() ,camera.getHeight() ,this.mParallaxLayerBack, vertexBufferObjectManager))); autoParallaxBackground.attachParallaxEntity(new ParallaxEntity(-5.0f, new Sprite(0, 80, this.mParallaxLayerMid, vertexBufferObjectManager))); ...


2

You should use delta time instead of total time. And keep the "running total" in your offset variable, instead of in time. renderer.material.mainTextureOffset += new Vector2 (Time.detlaTime*Speed,0); Then, when you come back from a pause, the mainTextureOffset is where you left it.



Top 50 recent answers are included