Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Java FX Help?


  • Please log in to reply

#1
PixelArtist

PixelArtist

    New Member

  • Member
  • Pip
  • 1 posts
Hi Everyone,

I am playing this game where you need to use JavaFX to obtain some clues and complete some challenges. I am working on adding some graphics on an app that was supplied by the game, have the graphics added but I would like them to rotate as they move around the screen. Below is my code for adding the images, does anyone have any idea how to get them to slowly rotate using Java FX? I have searched the JavaFX tutorials on Sun's site and can't find any info on how to do this.

//My Code
				 var ip = ImageParticle {
		 imageView: ImageView {
		 image: Image {
		 url: "{__DIR__}resources/hector4.png"
		 }
		 }
		 }
		 particleSystem.createPointParticle(ip, 450, 350);

						  var ip1 = ImageParticle {
		 imageView: ImageView {
		 image: Image {
		 url: "{__DIR__}resources/alienteapot4.png"
		 }
		 }
		 }
		 particleSystem.createPointParticle(ip1, 205, 125);

						  var ip2 = ImageParticle {
		 imageView: ImageView {
		 image: Image {
		 url: "{__DIR__}resources/Baron4.png"
		 }
		 }
		 }
		 particleSystem.createPointParticle(ip2, 95, 220);

						  var ip3 = ImageParticle {
		 imageView: ImageView {
		 image: Image {
		 url: "{__DIR__}resources/dotcup4.png"
		 }
		 }
		 }
		 particleSystem.createPointParticle(ip3, 500, 170);

								   var ip4 = ImageParticle {
		 imageView: ImageView {
		 image: Image {
		 url: "{__DIR__}resources/orangecup4.png"
		 }
		 }
		 }
		 particleSystem.createPointParticle(ip4, 175, 330);

		 //end my code

Here is a screen capture of what the thing currently looks like... just in case you need to know.

Screen Capture on YouTube
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP