Somewhat related to Erdo’s question in this forum…
I have a (fake) 2d array in JS. It works just fine. I can also use single variables between JS and GD just fine and send a single element of the ‘2d array’ into a GD variable. Now I want to transfer the entire 2d array into a GD structure. I haven’t managed to make this work though (guess I’m doing the syntax wrong). How do you do this?
I managed to get it working
I don’t know Javascript, but the syntax is so easy (just a bit different from Python), check the example here : ArrayToStructure.gdg (6.45 KB)
cant we have an array object as a feature?
To load and save string/values to the array table object (memory) , also load and save from array files on the hard drive - to that table.
This is no longer visual programming. You are literally writing java script with the event system.
Why dont you write an addon that makes use of the event system while at it
There are already structure variables so we don’t need any array object. BY the way, it’s a non-sense as the array object would be an invisible object which is not the way the objects are used in GDevelop (not like Construct that loves invisible objects for everything).