Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Diet Estus |
I am trying to implement a Metroid-style map in my hud. I want it to looks and behave similar to this one.
The way I currently have it implemented is like this.
I have a Map
object which is essentially just aGridContainer
of Cells
. A cell is just a ColorRect
with a couple of attributes (for example, was_encountered
and currently_in
).
In my level scene, I have another GridContainer
which contains MapChunks
. These are macroscopicArea2Ds
which, when my player enters them, send signals to the corresponding cells in the Map
node.
The result looks pretty good so far.
I would now like to add scrolling to this map, but don’t know how.
Do I need to create another Viewport? What about another Camera2D? Probably not the latter since you can only have one active camera in a scene at a time.
Any advice?