Step 3: Creating a list for the sections
We need to know what sections we want to create (roads, rivers, trees). We’ll start by making a list of these sections, and store that list as a variable.
> Open Events and drag out “When the level starts”. > Open Variables, and under Properties, find the “set true/false i to” block, and drag this block inside the event block. > Click on “true/false” and change it to “list”.
> Click on “i” and rename it to “level sections”. > Open Operators, and from the subsection Lists, drag the “Create empty list” block into the “set list level sections” block.
Now we’ve created an empty list for our sections, we are ready to add the sections to it.