Replies: 1 comment
-
Maybe it's better to use JSON? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An extension similar to the numerical encoding extension, but instead allows to read and write CSV strings.
An example of a practical use for this would be taking two lists,
particleEventsX
andparticleEventsY
and being able to combine them into one list,particleEvents
, containing both x and y values in a single item on the list.given a string
30|100|90|
, the[read value]
block could be used like so:[set CSV to (string)]
[read value]
- reads first value 30[set x to (value)]
[read value]
- reads the next value 100[set y to (value)]
[read value]
- read final value 90[point in direction (value)]
To be more flexible you could even make a
[write (value) with discriminator ( | )]
but it might be inconvenient.PS: This is already possible in vanilla scratch with custom blocks, but I thought it would be convienient to shorten them down to an extension so you don't need to copy the
define
scripts for each sprite you want to use it inBeta Was this translation helpful? Give feedback.
All reactions