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.

Recommended Answers

All 3 Replies

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

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?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.