The idea behind the question is a top-down 2d RPG that is an open-world only on one scene. I want to have several area2ds with collisionshape2ds to affect certain areas when the player is entering or exiting rooms through stairs or certain entrances such as doors or cave openings. I am planning on making a large sprite (overworld) that has several similar sprites (such as inside of buildings or caves) on top of the overworld sprite with staticbody2d nodes with collsionpolygon2d attached to act as children to each of the sprites for my collisions for each of them. I am planning on using a Ysort node to accomplish the layering of the sprites on top of the overworld but I am unsure how to toggle the sprite visibility and disable/enable the collisions attached to them when the player enters or exits the area2d. Would it also be possible to set export var to which sprite the area2d is needing or do I need to create a script for every single one? Here is what my area2d with collisionshape2d script is currently set up.
#this signal is attached to area2d
#not sure if this needs to be body entered or exited