问题描述
我的翻译转换有问题。我有一个 GridPane 7x7。在每个单元格中都有一个 StackPane。每个 StackPane 有 3 个 ImageView。如果我想使用 Translate Transition 更改最后添加的 ImageView 的位置,它会移动但它会移动到其他 ImageView 下。在动画运行时我需要做些什么来保持它的顶部?如果动画向上或向左而不是向下和向右,它实际上会保持在上方。
TranslateTransition translate = new TranslateTransition(new Duration(animation_duration));
translate.setToX(100);
translate.setByY(100);
translate.setNode(players[old_x][old_y]);
translate.play();
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)