Moving objects along an elliptical path
In this recipe, you will create a graphic and write a LiveCode script, using Animation Engine, to move the graphic along an elliptical path.
Getting ready
Before using this recipe, you will need to have the Animation Engine external downloaded and available on your development computer. See the Setting up Animation Engine recipe discussed earlier in this chapter.
How to do it...
Follow the steps in this recipe to create a graphic and, using the LiveCode script and Animation Engine, move it along an elliptical path:
Open LiveCode.
Create a new main stack.
Open the
animationEngine
stack. With LiveCode already running, you can simply double-click on theanimationEngine.livecode
file.Once you complete the previous steps, you will see the animationEngine window with a Use me! checkbox (see the following screenshot). Check that box.
Drag a button to the stack's card, and set the following preferences using the property inspector:
Name:
myMEButton
Label:
Move Elliptical...