https://www.youtube.com/watch?v=Z-iXfstZNgM
So I've seen this video, and I wanna create a system, that's similar to this. Thanks to CanvasGroups and TileMapLayers, the rendering part should be fairly easy, Even though i still have zto figure out how to maybe add a blur-effect to layers, that are out of focus for extra waowzers. What's bothering me, is the physics part. There aren't enough CollisionLayers to make is scalable, and i don't think that's what the layers are meant for. So far the cleanest way I've found to put the different layers into different PHYSICS SPACES, using PhysicsServer2D and body_set_space() or area_set_space() as well as a singleton, that keeps track of the RIDs of each space, that's in use. The neat thing is, that you can turn these physics spaces on and off on the fly, which may be useful for some more experimental games. Yet, I still have the issue, that it's a teensy bit convoluted overall, after all you have to loop through all nodes at the beginning, sort them into their respective spaces and do it again for each node that gets added to the tree and happens to be a collisionobject. There's also the problem of what to do, when an object needs to interact with objects of multiple layers.
I'd like some input on how to pull it off as easy and scalable as possible, maybe someone has seen a demo project?
Join my Discord:
https://discord.gg/rTmmPzEGK6
Download the latest early build of Goblin Menace:
https://bit.ly/goblin_menace_alpha
About me:
I'm making a sandbox action RPG with a focus on building your own AI-controlled mercenary army to fight hordes of goblins. I make games with a top-down 2.5D pixel art style.