How can I import a prepared text file (e.g. json format or simple comma separated values) into an array?

Lupo
@Lupo
Best posts made by Lupo
-
import text file
-
Sound with pitch greater 100 cannot be made loopable
When playing a loobable sound with pitch greater than 100 then it cannot be properly looped. At the earlier end of the sound it waits until the real length of the sound and only by then triggers the next behaviour. A loopable sound is not possible with this unexpected behaviour.
-
RE: import text file
@RobinsonX I have a few MB comma separated text file I would like to import into array or dictionary. I can put it into Dropbox and with a direct download link I could donwload it with HttpRequest.
Do you have an example of a GET HttpRequest and reading response and put into array/dictionary?
Latest posts made by Lupo
-
RE: import text file
@RobinsonX Thanks for the sample. But how are the values separated and stored in the array? By magic 😉 or do I need to parse the txt file (comma separated strings)?
-
RE: import text file
@RobinsonX I have a few MB comma separated text file I would like to import into array or dictionary. I can put it into Dropbox and with a direct download link I could donwload it with HttpRequest.
Do you have an example of a GET HttpRequest and reading response and put into array/dictionary? -
import text file
How can I import a prepared text file (e.g. json format or simple comma separated values) into an array?
-
RE: Spawn objects freezes other object’s moves
@deeeds I don’t know, but I hope you can explain me in detail? 😉 Thx
-
Global Array
How can I define a global Array which can be used in different objects in the same scene? A kind of global constants to be accessible for every object.
-
Spawn objects freezes other object’s moves
I spawn two new objects every 1.5 seconds and then they move slowly accross the screen with all other objects previously spawned. But every time the spawn behaviour is triggered all other currently moving objects are freezing for a few milliseconds which gives not a smooth continuous flow of the objects. How can I avoid this interruptions?
-
RE: Sound doesn’t loop properly
@murtaza But how do you explain that the delay always only happens after the first restart of the sound? Every subsequent restart is without any delay.
-
RE: Sound doesn’t loop properly
@aidan-oxley Thanks for the hint. The sound is not music and a music is already playing. The sound is a car engine sound which increases the pitch if driving faster and lower if driving slower. So the idea with the timing needs to be calculated for all the possible steps which is very tedious.
-
RE: Sound doesn’t loop properly
The same happens when connecting two play sound behaviours: the second should start immediately after the first has finished but there is always a lag before starting the second sound.
-
Sound with pitch greater 100 cannot be made loopable
When playing a loobable sound with pitch greater than 100 then it cannot be properly looped. At the earlier end of the sound it waits until the real length of the sound and only by then triggers the next behaviour. A loopable sound is not possible with this unexpected behaviour.