edit: please read lower comments for newer versions and information. This project is growing!
https://gist.github.com/26a01b934ea7e522c497
I thought I would share this! It's the beginning of my new RTS (real time strategy) game project, but right now it's mainly the foundational GUI stuff and only 90 lines long. So I thought I would share it, because it's easy to learn from.
In this example, there are two grids. They're identical, except for size, as one is the 'minimap' grid. When you click on the minimap, it controls motion on the larger grid. There is a blue ball bouncing around on the grid for now, to show the concept that units will naturally stick with their landscape even as the controller moves around.
There's also a small beginning of unit selection controls. When you don't click on the minimap, and you're clicking on the real map, you can drag your finger and it makes a square. I plan on combining that with a hittest on touch_ended to select units.
The script is designed to be easily tweaked. The variable self.grid_count can add more grids to the map. And the variable self.map_size changes the size of the maps grids. Right now it's in beta test mode so I wanted a scene I can see without clicking (lazy)