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绘制滚动文本TickerText
最新推荐文章于 2021-05-29 02:32:12 发布
本文介绍如何使用TickerText创建带有淡入淡出及旋转动画的文字效果,包括设置字体、内容、对齐方式等,并通过实体修饰器实现平滑过渡。
3389

被折叠的 条评论
为什么被折叠?



