Load animation images at run time

  • How do I load individual sprite animation images for a selected sprite at run time. I know of the "Load image from URL" but how do I get the image into a particular frame of the animation?

    Can I have different instances of the sprite with different animation sequences?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • intances of the same sprite always have the same animations.

    If you set the animation to have more frames and set the speed to 0 you can change between animation-frames by using set frame.

    Load image from url loads into the frame the sprite is currently displaying, so if you want different images loaded make sure you load them on different frames.

  • Yeah, I found what I was messing up. It seems that you have to have the number of frames pre-defined (before run time), i.e. you cannot load an image into a frame that does not yet exist (via the animation editor).

  • Digitizer if you are worried about downloads, you can just make 1x1 pixel frames. It will resize them dynamically iirc.

    LittleStain, Thanks for the tip! I have only done single frames, I never realized we could do animations too!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)