We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,973 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

looping animation (Java)

Hello everyone.
I can't figure out the best way to make a simple picture loop through the screen in a predefined trajectory (e.g. elliptic). Do i need to use some math or is there a way to like draw a trajectory and bind the pic to it?
Thanks in advance.

2
Contributors
3
Replies
1 Week
Discussion Span
1 Year Ago
Last Updated
4
Views
witchDoc
Newbie Poster
5 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

What do you have. If you have an equation for the trajectory, then you can simply use that equation as the position equation for the picture

firstPerson
Industrious Poster
4,044 posts since Dec 2008
Reputation Points: 851
Solved Threads: 625
Skill Endorsements: 15

What you're saying goes for simple trajectories, but what about complex ones? Can't think of an equation for a wiggly-jigggly-curvy-line now can you?

witchDoc
Newbie Poster
5 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

What is wiggly jiggly curvy line? Either you can hardcode it or use other software to draw out the trajectory and then get the raw data points, then you can interpolate it into a equation.

firstPerson
Industrious Poster
4,044 posts since Dec 2008
Reputation Points: 851
Solved Threads: 625
Skill Endorsements: 15

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.5318 seconds using 2.69MB