Thanks @Keith_1357, I didn’t know about this Create multiple copies of an object which is very interesting. I managed to create a table of Input Boxes, like below :
However I couldn’t print back their values. I know that they should be called using :
After the objects are created, you can reference their object variables to manage the objects:
RowID: what horizontal row does this object reside in,
ColumnID: what vertical column does this object reside in,
CreationID: starting top-left, and proceeding from left to right, what is the number of the created object,
BatchID: optional identifier assigned to all objects created
But unfortunately I didn’t find the correct syntax… and also I’m not sure that it would be useful in my case (although very interesting for future use)
I can give now the precise wider picture to help understand :
I’m willing to create a Gdevelop tutorial game : that is to say a game which can be played as a presentation with slides (each scene being a new slide), and with animations related to the Gdevelop function being explained.
For that I intend to store on an external JSON file the content of the tutorial, which could look like this :
structure of all elements taught : ID_elementtaught, related to an other structure being like below :
- Title of the element taught (for instance “how to create and Object”
- first paragraph of the explanation
- second paragraph of the explanation
- third paragraph of the explanation
- level of this element (beginner, intermediate, advanced)
- date of teaching that element
- planned date for reminding that element to students.
- boolean : element is well understood Yes/No
Then I want to be able to read that JSON file and show it on screen in the following manner :
being able to select the ID_elementtaugh (in an input box), and after print the content of the relevant paragraphs in text boxes just below, and also being able to modify these paragraph on the very page.
After that the modified paragraphs will be saved on an updated JSON file. (The JSON file is important because it is partially already written with many elements and paragraphs. and It would be a simple way to work collaboratively on it.)
To summarize, the aim is to build UI that allows to write a book with titles and paragraphs…
Therefore creating a read/write table of text paragraph (and also other type of information as date or booleans) within a UI. And show on screen the table elements in a specific order, and also to save in JSON all these elements.
I hope this is clear, and I’m very interested to read possible solutions you may think of.