【发布时间】:2016-07-10 04:12:49
【问题描述】:
我正在使用 libgdx scene2d 中的表格来对我的分数标签进行分组:
lblScore = new Label("Score: " + Integer.toString(score), labelStyle);
lblBscore = new Label("Best: " + Integer.toString(bScore), labelStyle);
table = new Table();
table.setFillParent(true);
table.setDebug(false);
table.top();
table.add(lblScore).padTop(Constant.HEIGHT / 2 - 100);
table.row();
table.add(lblBscore).padTop(10);
stage.addActor(table);
我想要发生的是,当我的角色死亡时,桌子会出现动画,当我的角色活着时,桌子只是隐藏是个好主意吗?还是我应该在我的角色死亡时创建表格?
【问题讨论】: