Behavior : Animation loader
Author:Rex.Rainbow
- Load animations from URL.
Download
Actions
Animation
Action:Load all animations
- Load all anmations from URL.
- Size ( Combo ) : Whether to resize the sprite to the size of the loaded image, or stretch it to the current size.
- Options : ["Resize to image size","Keep current size"]
URL
Action:Set URL
- Set requested URL. Call this action under "Condition: On get URL"
- URL ( string ) : URL of loaded frame.
Expressions
Loaded
Expression:FrameURL
- Get requested url. Use this expression under "Condition: On frame loaded", or "Condition: On frame loaded failed".
URL
Expression:AnimationName
- Get request animation name. Use this expression under "Condition: On get URL"
Expression:FrameIndex
- Get request frame index. Use this expression under "Condition: On get URL"
Conditions
Loaded
Condition:On all animations loaded
- Triggered when all animations loaded.
Condition:On frame loaded successful
- Triggered when a frame is loaded successful. Get animation name and frame index by "expression:AnimationName", "expression:FrameIndex"
Condition:On frame loaded failed
- Triggered when a frame is loaded failed. Get animation name and frame index by "expression:AnimationName", "expression:FrameIndex"
URL
Condition:On get URL
- Triggered when request a URL for loading a frame. Get animation name and frame index by "expression:AnimationName", "expression:FrameIndex"