Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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