Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_sprite_animation_loader

Plugin, ACE table, Discussion thread
Dependence: Official sprite plugin

Introduction
Load animations of sprite from URL.

Usage
Sample capx
Load all animations of this sprite follows these 3 steps.
  1. Call "Action:Load all animations" to load all frames of all animations of this sprite. 
  2. To load each frame, this behavior will trigger "Condition:On get URL" to get URL of this frame from event. Get the animation name and the index of this frame by "Expression:AnimationName", "Expression:FrameIndex", then set the URL by "Action:Set URL".
  3. "Condition:On all animations loaded" will be triggered when all frames are loaded finished (successful or failed). Each successful or failed loading of a frame will trigger "Condition:On frame loaded successful" or "Condition:On frame loaded failed". Get the animation name and the index of this frame by "Expression:AnimationName", "Expression:FrameIndex", and the loaded URL by "Expression:FrameURL".

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About