Guest User

Untitled

a guest
May 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. import javafx.animation.Animation;
  2. import javafx.animation.KeyFrame;
  3. import javafx.animation.Timeline;
  4. import javafx.application.Application;
  5. import javafx.scene.Scene;
  6. import javafx.scene.layout.BorderPane;
  7. import javafx.scene.layout.GridPane;
  8. import javafx.scene.text.Font;
  9. import javafx.scene.text.FontWeight;
  10. import javafx.scene.text.Text;
  11. import javafx.stage.Stage;
  12. import javafx.scene.control.Button;
  13. import javafx.event.ActionEvent;
  14. import javafx.geometry.Pos;
  15. import javafx.util.Duration;
  16.  
  17. import java.awt.event.ActionListener;
  18. import java.util.Timer;
  19.  
  20. /** In case my imports are incorrect I included them here */
  21.  
  22.  
  23. int tickspeed = 1000;
  24.  
  25. Timer updateStats = new Timer();
  26. updateStats.scheduleAtFixedRate(new TimerTask() {
  27. @Override
  28. public void run () {
  29. player1.growStats();
  30. }
  31.  
  32. }, 0, tickspeed);
Add Comment
Please, Sign In to add comment