Massive Art/Animation Concept

0 favourites
  • 7 posts
From the Asset Store
12 animated cartoon pixel art character game sprite. RPG Fantasy character animations assets. Topdown & Sidescroller.
  • I've been thinking about this for a while, and wanted to see what other people thought. In a game, you have to keep animations and sprite sizes small in order to keep the memory usage as low as possible. Sometimes that makes it difficult to make a game look as good as most modern games look today. So I had a thought:

    For long or large animations, could you do an "on animation finished" check, and in that event put a "create second part of the animation; destroy the first part"? And then "on second animation finished", "create first part of the animation and destroy the second part", effectively having the animation split as 2 sprites. In theory, they would never be loaded simultaneously clearing up the memory, and as long as what you're loading isn't too large, you wouldn't receive any hiccups.

    I'm talking about this mainly for PC games, not mobile.

    Would something like this work?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Katala - I'm glad I'm not the only one who thought of it! However I'm noticing; I made a text file that has the memory usage, and when sprites get destroyed, the memory usage isn't going down (I think it might be when I'm using the debug editor, but because the debug editor cannot include event sheets, I'm unable to use it properly)

  • You could try using bigger images to see it better.

  • I'm still curious if doing this is a big no-no...can anyone with actual development and programming experience chime in?

  • Memory released from images don't occur until layout change. Any images loaded during a layout will remain in memory even if the all sprites are destroyed. Onlye once the layout changes does that memory release. this is a well discussed topic and people do want a way to release memory during a layout.

  • jayderyu - thank you! that's exactly what I needed to know.

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