Loading Sprites Only When Needed

Discussion and feedback on Construct 2

Post » Wed Apr 02, 2014 12:47 am

So, from what I understand, everything on a layout is loaded when the layout is. A project I'm considering would use semi-random levels and the way I was considering doing it was having one (or a few, one for every tile set) layouts that would dynamically configure themselves. Obviously I don't want a bunch of sprites loaded that aren't being used, so I was thinking of putting all these sprites in a separate layout and then instantiating them when needed.

Would this work how I think it will? Thanks!
Posts: 37
Reputation: 749

Post » Wed Apr 02, 2014 1:05 am

It wont make a huge different whether you add them to the layout where you need them and just destroy them on start of layout or put them on another layout and load them from there.

I don't think you will get a lot from such approach besides maybe make things a bit more confusing and "annoying" for yourself since you would have to change layout or use the object list every time you would have to work with a relevant object for another layout.

But don't think there are anything wrong by doing it in regards to making things work.
Posts: 1,210
Reputation: 7,559

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests