Horizontal: L2R
ASTER::ACTION::ALIGN::Left to Right, Horizontal
Aligning from Left to Right Using the Instance Image Width
During the execution of the CF25 application, the coordinates of the selected object instance are aligned and modified.
Only sprite (Active) object types can be selected.
Parameter.1
Select the object instance. Only the "Active (sprite) Object" Type can select.
If "The Active Object" is not specified, an error will be displayed when executing the action from the event, and the process will be aborted.
Parameter.2
4
parameters are serialized and sent as a single string.
" 100 , 150 , +10 , true "
Name | Type | details |
---|---|---|
X Position | int | X coordinate to start placing |
Y Position | int | Y coordinate to start placing |
Offset Value | int | Offset value for position adjustment: negative values possible |
Animation Frame Change Flag | boolean | true = Force change of animation frame |
Internal Processing
Change the animation frame of the object instance and align it at equal intervals by referring to the image width.
When aligning, forcibly stop the animation, assign a serial number according to the number of instances, and assign the serial number to the variable Alterable Variables A
of the instance.
- Related: About Reserved Variables
Image Width + Offset Value
Forcibly change the animation frame of the instance using the serial number. By referring to the image width of the newly selected animation frame, it can be aligned with individual image widths, and you can display the list of animation images on the screen.
An option to forcibly change the animation frame at the same time as aligning is selectable.
-
If
true
, change the animation frame when aligning. -
If
false
, do not stop the animation or change the animation frame.
Notes
The Alignment function does Not use floating point numbers as parameters. Here is a sample as an Error。
Parameters cannot be written without regard to data type.
Although some template parameters are compatible, the number of parameters is basically different, so please avoid diverting parameters to other templates without verifying the operation.