Loading/Unloading images at runtime

This forum is currently in read-only mode.
From the Asset Store
Antisuspend Plugin for Construct 3 prevents the runtime from getting suspended.
  • So, say I want to load and unload images for sprites during runtime, for example for a big exploration game, to avoid wasting buttloads of VRAM and also to avoid long loading times. Is this possible at all? Will it update collissions and shit too?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • it's possible with versions after 98.9, but i don't know if it's fully functional yet.

  • You generally can only load and free textures for entire layouts at a time, but if you use the action to unload textures from the current layout, it will free all textures except the ones currently in use by existing objects. That might work for you. But then you should be aware that creating an object that doesn't exist will have to load the texture for that object, which could cause a brief pause.

  • Ah, damn. I was kind of hoping to have this vast scrolling landscape, which is why it would be useful.

  • How vast are we talking? I'd think it'd be best to keep the landscapes in memory and clear out anything else, if one layout really is going to be a problem for VRAM.

  • I don't know, pretty big atleast, and I don't want to exclude people with crappy computers (like I used to have).

  • Sounds like you want to do something which requires a lot of VRAM on computers with not much VRAM.

    I think you're stuck

  • Camouflage the texture loading/saving as a checkpoint. When player reaches a checkpoint, dim the screen and do something to distract the player while you sneakily swap textures around.

  • That's a great idea - you might even be able to completely disguise a switch to another layout by having two screens identically laid out, and the pause while textures are loaded could be covered up by Mipey's idea!

  • I'll throw a rock...

    remember SWIV on the amiga? vertical shooter tank and heli reminiscent of the arcade silkworm, but vertical instead of horizontal.

    So, that game, by sales curve, was a masterpiece of code as it would play the game from beginning to the end with simultaneous loading of titles for background and sprites and bob. Although it was said to load gfx and palletes simultaneously, it was done briefly during some places where no enemy sprites were there and a common background with general simple titles was displayed.

    Like the idea above, it was a brief pause of a second and it was during a level.

    At the end of a level with it's guardian, it would load again while the guardian was exploding.

    It was really clever into disguising the load,

    a loooot diferent from shadow of the beast 2 and 3 where everything except music would freeze for some 30 seconds...

    Anyway, just a set of ideas, hope it inspires.

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