How do you implement a level changer when you have too many levels? (Solved)

Is it okay to use hundred proxies in a single bootstrap collection to account for every level? The default maximum limit of proxies is set to eight, so I thought that it might be inefficient to have so many proxies.

Yes, that should be fine I think. I assume you’ll only have one loaded at a time?

How are the levels created? By hand? Or could you possibly spawn/create the levels from some kind of level data files and use a single collection with the code required to create the level?

1 Like

Yes only one level is loaded at a time. (All the levels share the same socket too.)

Each level is a collection that contains three game objects. Two are instances, and the third one is a builtin that contains one tilemap that is unique to each level. I am making separate collections for separate levels only because they have different tilemaps.

I don’t think I can dynamically add a tilemap component, can I?

No, but you could dynamically fill a tilemap using tilemap.set_tile(). BUT I think what you are describing should not be a problem.

1 Like

Thanks for your help. I got my answers within a day and that’s just amazing.

3 Likes