We are about to switch to a new forum software. Until then we have removed the registration on this forum.
In order to load data with loadStrings(), I assume I need to use preload() - at least, that's what my first test shows :)
But if I want to be able to load another text file while a sketch is running (to load the next level in a game, for instance) can I call preload again? I assume that could cause trouble since it would "preload" other things that are already loaded.
I haven't used callbacks, but is that an alternative to preloading when using loadStrings()? If so, what would it look like.
Also, since the data (a list of numbers) loads as strings, is there an easy way to convert them to numbers as they load into the array? Here's the loading line of code"
gridSquare = loadStrings('data.txt');
But after much banging of my head wondering why the data wasn't doing what it should, , I realised it does exactly what it says and loads strings. I assume I need split. again, but how?