Regular Polygon Movement


Overview

This automated movement works as an addition to the Circular and Simple Ellipse movements by providing many equal length sided regular polygon shapes.

Using the movement

The movement is very similar in design to the circular movement, set the speed (velocity), radius and centre X and Y positions of the movement. Again note that the location of the object in the frame editor does not play a role in this movement. The number of sides determines the shape of the movement, a minimum of three sides is needed and this will create a triangle shape. The rotation angle setting allows control the offset of the shape from the x-axis.

Frame editor properties

Image showing the properties for this movement

Figure 1: Movement properties for the Regular Polygon Movement.

General Properties

Move at start: Defines if the movement starts when the frame does or if the movement is initially paused.


Polygon Properties

Number of Sides: Defines the shape, 3 for triangle, 4 for square, 5 for pentagon etc.
Velocity: Velocity of the movement in pixels per second (assuming 50 frames per second) Negate value reverses the direction.
Radius: Inner radius in pixels of the shape.
Centre X: The x-axis value of the centre of rotation. Note: To rotate around another object rather than a point use the Movement Controller and always set the centre x to the x position of the other object.
Centre Y: Equivalent of the centre X value but for the y-axis.
Rotation Angle: Offset angle of the shape from the x-axis.