javafx动画循环 [英] javafx animation looping

查看:443
本文介绍了javafx动画循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c ++或c编程语言中,我们知道改变我们使用gotoxy(x,y)的坐标,我们可以使用循环和睡眠来改变坐标和制作动画。像这样;

in c++ or c programming language, we know to change the cordinate we use gotoxy(x,y) and we can use looping and sleep to change the cordinate and making animation. like this;

for(x = 20; x < 25; x++){
  gotoxy(x,20); cout << "*"
}

但我的问题是在JAVAFX 2.0编程中怎么样?我正在使用netbeans 7.2。
感谢您的帮助。

but my queston is how about in JAVAFX 2.0 programming? i'm using netbeans 7.2. thanks for your any help.

推荐答案

请查看使用时间轴动画。它是JavaFX中动画的关键组成部分,而
用于确定动画的关键部分何时以及以何种顺序发生。

Have look at using a Timeline Animation. It is a key component of animation in JavaFX and
is used to establish when, and in what sequence, key parts of an animation occur.

这是示例

这篇关于javafx动画循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆