Is it possible to lazy load animation frames ?

  • I have a sprite with about 10 animations and the animation will be played in sequence throughout the life of the game like a hangman character , hence i need about 2 animation to load during the initial game play of the screen and rest in the background. Is it possible , i am trying to minimize the initial load time of the game ? or let me know if there are any other tricks as the C2's spritesheet export of 512x512 doesn't seem to work as it creates multiple files (around 50 ) for the game designed for retina display and it causes lots of time to load especially in mobile devices like iPad and iPhone basically when the number of http requests increases it really slows down the download time of image assets.

  • I'm not positive that there is any kind of lazyload at the moment (there might be something in the plugins part of the forum though). Updating Construct 2 to the latest beta should definitely help you out though, as it raised the size of sprite sheets, and it can get rid of any duplicate images during compilation.

  • Any word on when that beta will be released officially? I bought Construct through Steam, so I don't have access to the beta. :\ heh

  • Wigriff Right click c2 in steam -> properties -> beta -> opt into beta updates.

  • Oh EncyptedCow, that's silly. There is no way that would work. I mean, if that was an option, I SURELY would have known about it by... now...


    I'm an idiot.

    Thank you so much. :D

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the information , hope it helps i had been breaking my head for couple of weeks on how to make it faster, finally i see a light at the end of the tunnel.

    btw, I am not sure about how steam works but anyone can download the beta

    Again very thanks i wouldn't have definitely noted the release notes.

    Ashley , Also i wish if there is a way to remove the limitation of 1 spritesheet per sprite so that we can share the spritesheet across sprites and still minimize the download time.

  • All images are already lazy-loaded by all browsers, and in terms of memory usage they are only loaded in to memory per layout. However the layout-by-layout loading only works with entire sprites, so either all a sprite's animations are loaded in to memory, or none of them. Perhaps breaking your animations up across different objects would help with that.

    Note in r133 the spritesheet size is upped to 2048x2048 (but it still might use smaller sheets to save memory).

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