Hi again,
I’m setting up my game project, including the LevelEditor. What I want to accomplish is the following:
– I want to load a level
– Then be able to play it and/or edit it
– If edited, I want to save the level, so next time the game starts I see the changes
From what I understand, levels can be designed either in QML or get loaded from JSON. As I understand it, the LevelEditor only supports saving levels in JSON, so I should be using JSON for my scenario. By doing so, I’ve been able to accomplish the first two steps of what I want. But now I have a problem saving the level I loaded from JSON, because when I do so I get this error:
<!–StartFragment–>ERROR: LevelEditorLogic: no LevelBase loaded – either no LevelLoader defined or the loaded level was not derived from LevelBase as it has no levelData property!?<!–EndFragment–>
So now my question: how do I define a LevelBase in such a way it can be recognized by the LevelEditor for the level loaded from JSON, as I think the LevelBase is only used with QML levels? Am I overlooking something?
Thanks!