40 views
in GUI Development by
Hi,

I would like to know is it possible to move an object(image, text) along with a path.

If not, could you advise how to achieve a similar effect?

Thanks,

Noah

1 Answer

0 votes
by
 
Best answer

Hello Chaunon,

such functionality is unfortunately not available out of the box. Depending on your application case I see following two approaches:

Option 1: If the path consists of straight line segments

Then you can manage multiple Effect object, each object responsible for one animation along a dedicated line segment. Multiple effects can be connected to create a chain of effects. For example in case of the Move and resize effect: Chain several Animation Effects together.

Option 2: If the path consists of arcs, curves

Then use Bezier curves to describe the desired arcs and curves. The Bezier equations are well suitable to calculate the X,Y coordinate from the t value (in range 0..1). In this manner you can calculate the X,Y coordinates at each position of the Bezier curve.

I hope it helps you further

Best regards

Paul Banach

by
Thank you, Paul.

It does help a lot.

Regards,

Noah

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...