I’m working on a 2d isometric map.
The different lua files that I have are:
main.lua – initiates everything
map_editor.lua – main class for the map editor
map_default.lua – contains the information of the map to be loaded by the map_editor
Tile.lua – Tile class. map_default contains 100 of these in a 10x10 map
I’m having trouble getting the displaygroup hierarchy set-up properly.
I’m not sure how to properly provide code snippits to give you guys enough information, so I have included all files excluding main.lua.
My goal is to be able to move the entire map by changing the map_default’s displayGroup (the local variable ‘map’ in map_editor.lua)
I’m sorry for not being able to provide code snippits on the post, but I feel like you guys might need to see the project as a whole to be able to help me.
I’ve tried to include comments to help you understand the code more easily.
My problem is that when I add each individual Tile to it’s own displaygroup, I can’t seem to get them to show up, whereas if I set the x and y position of the Tile itself, it shows up in the correct spot.
Please take a look at the entire hierarchy of the display groups and let me know if I’m doing something wrong!
Thanks in advance!!