[英]Libgdx | Scene2d | How to use actions on an animation
如何在動畫上使用動作(例如,淡入/淡出)? 我是否必須立即設置動畫中每個單獨紋理的淡入/淡出?
將動畫添加到Actor並在其上添加動作。
public class AnimationWithAction extends Actor {
Animation animation = new Animation(5, textures);
}
AnimationWithAction anim = new AnimationWithAction();
anim.addAction(youraction);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.