The action tags can be added to an object and enclose any number of items, each executes an action when triggered by an event.
type: The type of action to execute. The type values that move objects are:
center_on_cursor: Center an object on the cursor's position.
move_to: Move the target object to the position defined by the x and y attributes.
move_by: Offset the target object by the given x and y pixel amounts, or by the given distance and angle amounts (relative to the current position).
target: Specifies the ID of the object to apply this action to. If this attribute is omitted, then the object that encloses this action is targeted.
x: The horizontal position to move the target object to (move_to) or the horizontal amount to offset it (move_by). If omitted, then the object's horizontal position remains unchanged.
y: The vertical position to move the target object to (move_to) or the vertical amount to offset it (move_by). If omitted, then the object's vertical position remains unchanged.
offset: This is used only when type is set to move_to. It determines whether the x and y values are offsetted by the object'soffset_x and offset_y or not. The default is true. Set this attribute to false to move the object to an absolute location regardless of the object's relative offsets.
distance: If the action type is move_by, and the x and y attributes are omitted, then the target object is moved by distance in the direction of angle. The default is 0.
angle: If the action type is move_by, and the x and y attributes are omitted, then the target object is moved by distance in the direction of angle. Angle zero is at the 12 o'clock position. The default is 0.
duration: The number of seconds it takes to move the object. A value of zero moves the object instantly. Larger values move the object gradually. The default is 1.
easing: The way the animation comes to a stop. Valid values are:
back: Moves the object past its destination and then brings it back.
bounce: Bounces the abject on its destination with several decaying rebounds.
elastic: Bounces the abject past its destination and then back with several decaying rebounds.
regular: Slows down the object to its destination. This is the default value.
strong: Similar to regular, but starts faster and decelerates faster.
none: Moves the object to its destination without a change in speed.
If an object does not move to the expected location, this is likely because it has invisible parts that affect its bounding rectangle. The object's bounding rectangle includes border lines, and hidden and transparent graphics. To exclude these parts, it is necessary to mask them.