Collection proxy max count (SOLVED)

The next stage of my game involves building a level select screen and the levels. I have about 120 levels in the beta version of the game that I made with stencyl. That means my level select screen has (just over) 120 collection proxies .

At the moment I’m getting an error Collection proxy could not be created since the buffer is full (8), tweak “collection_proxy.max_count” in the config file.. That sounds easy enough to fix, but is there something I’m missing? Is there a reason why 8 is the default maximum? How does blossom blast organise its collections? Is there a better way of doing this?

And whilst I’m here let’s imagine I have a level button prototype that has a script, and that script has a numerical property which shows which level to load. So if the level_property is 1, it loads the collection proxy which is called 1. How would I write "load collection proxy with name “level_property” in lua?

1 Like

Just set the value as you see fit. We have the default values low, but reasonable for a start.

You can do:

msg.post("loader#" .. self.level_property, "load")

Assuming the proxies are in game object “loader”.

2 Likes

Thank you Sicher for your continued support.

2 Likes

What kind of game are you creating? Could you have one level proxy pointing to a level.collection and then at run-time create your level in the collection from some level data, or do you actually need to create 120 collections?

I’m pretty sure they have to be 120 collections. My game structure is similar to angry birds: 120 puzzles that all share the same 10 or 15 elements.

Ok, yeah, then it’s probably reasonable to create them in individual collections!