I've looked at the example program that shows you how to create a tiled map and then pinch/zoom/pan which uses the entire display area for the map. What I'd like to know, is how to create that same behavior while containing the map within a portion of the stage rather than occupying the entire stage, something like:
How can you keep the main stage camera's view fixed and its widgets accessible while changing viewport/zoom on the map? I've tried various combinations of stages and cameras/maprenderers to no avail. This seems like a rather common idea so I hope the answer is a simple one.
Thanks in advance,
- Richard
B4X:
+==============================+
| Main Stage |
| +------------------------+ |
| | Tiled map display | |
| | | |
| +------------------------+ |
| [random widget] |
| [another widget] |
| |
+==============================+
How can you keep the main stage camera's view fixed and its widgets accessible while changing viewport/zoom on the map? I've tried various combinations of stages and cameras/maprenderers to no avail. This seems like a rather common idea so I hope the answer is a simple one.
Thanks in advance,
- Richard