Hi,
I’m quite new to Corona and Lua (and coding) but managed to get a 100x100 map working using Tiled which drops into other maps when encountering objects. I’ve used your code example on RotateConstrainStoryBoard to build it using scenes. So far I have three scenes setup where one is the main 100x100 map and the other two are small instances of a few tiles each at present. And this works great back and forth between scenes.
Today I decided to enlarge the map to 100x100 tiles. This still works as expected but now the time to return to the main map from a instance is pretty slow (several seconds). I realise this is due to the map size but given the capability of MTE to use large maps I was wondering whether you have any suggestions.
The main issue is that once I leave scene1 and then return it needs to run mte.loadMap to acquire the data such as tile properties (from Tiled). mte.loadMap resides in willEnterScene. In my naivety I’ve tried moving it to the start of the code but this fails in the same way as the data isn’t there after returning from scene 2 or 3. I guess I could attempt to load the map into the mydata.lua store where M resides for global data to cross between scenes but this is beyond me right now and I’m not sure it avoids doing mte.loadMap anyway.
Ideally I’d like my map to be able to handle larger than 1000x1000 as you’ve demonstrated in one of your videos but I can’t see this being feasible. I have considered breaking the map into smaller chunks as new scenes but one of the things I’ve setup is the zoom and scroll function to move around the map at will and that would then become unworkable I think.
So how do I load a large map and keep it so a loadMap isn’t needed or how do i assist loadMap to reload the map quickly?
Many thanks for such an awesome tool