blob: 3a291420f5d8dd4004760673fc65821878789def (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package fallTest;
import javafx.animation.*;
import javafx.util.Duration;
public class NoteNode {
private final int TIME = 20;
private NoteField info;
private Block vis;
TranslateTransition anim = new TranslateTransition(Duration.millis(TIME));
public NoteNode(NoteField newInfo, Block newVis) {
vis=newVis;
info = newInfo;
anim.setNode(vis);
anim.setByY();
anim.setCycleCount(1);
anim.setAutoReverse(false);
anim.play();
}
}
|