0
的变化速度这是andengine- 我想,因为它运行,就像一个自由运行游戏像喷气背包兜风改变视差背景的速度autoparallaxbackgroundexample代码..Andengine- autoparallaxbackground-背景
的链接的代码是 - AutoParallaxBackgroundExample.java
在速度和背景的位置被设定为 -
autoParallaxBackground.attachParallaxEntity(new ParallaxEntity(0.0f, new Sprite(0, CAMERA_HEIGHT - this.mParallaxLayerBack.getHeight(), this.mParallaxLayerBack)));
autoParallaxBackground.attachParallaxEntity(new ParallaxEntity(-5.0f, new Sprite(0, 80, this.mParallaxLayerMid)));
autoParallaxBackground.attachParallaxEntity(new ParallaxEntity(-10.0f, new Sprite(0, CAMERA_HEIGHT - this.mParallaxLayerFront.getHeight(), this.mParallaxLayerFront)));
scene.setBackground(autoParallaxBackground);
我需要改变-5.0f值等个线在它,而在游戏运行..固定的时间量之后递增