AndEngine绘制滚动文本TickerText

final Text text = new TickerText(30, 60, this.mFont, "There are also ticker texts!\n\nYou'll see the answer to life & universe in...\n\n5 4 3 2 1...\n\n42\n\nIndeed very funny!", new TickerTextOptions(HorizontalAlign.CENTER, 10), this.getVertexBufferObjectManager());
		text.registerEntityModifier(
			new SequenceEntityModifier(
				new ParallelEntityModifier(
					new AlphaModifier(10, 0.0f, 1.0f),
					new ScaleModifier(10, 0.5f, 1.0f)
				),
				new RotationModifier(5, 0, 360)
			)
		);
		text.setBlendFunction(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);
		scene.attachChild(text);

你可能感兴趣的:(AndEngine,Android,AndEngine,Android)