Discuss Scratch

gdavid04
Scratcher
16 posts

Getting/setting a variable's/list's value with an extension block?

Is it possible to get/set a variable's/list's value with an extension block?
If yes, how?
If i want to make a
add [list v]'s contents to [list v]::extension
block for example.

Last edited by gdavid04 (Nov. 3, 2017 15:22:21)


My Scratch extensions
My latest project: Program the sprite
savaka
Scratcher
1000+ posts

Getting/setting a variable's/list's value with an extension block?

AFAIK you can't access stuff from the project (sprites, variables, etc) with extensions


Signature protected by Savaka Antikumquat
Garamol56
Scratcher
100+ posts

Getting/setting a variable's/list's value with an extension block?

gdavid04 wrote:

add [list v]'s contents to [list v]::extension
add (list1 :: list) to [list2 v]
or if you want them seperated
repeat (length of [list1 v] :: list)
add (item (1 v) of [list1 v] :: list) to [list2 v]
delete (1 v) of [list1 v]

I have reached 100 posts! Here's my 100th post.
“Logic will get you from A to B. Imagination will take you everywhere.”
- Albert Einstein
BTW: I do clickable links in RED.
gdavid04
Scratcher
16 posts

Getting/setting a variable's/list's value with an extension block?

Garamol56 wrote:

gdavid04 wrote:

add [list v]'s contents to [list v]::extension
add (list1 :: list) to [list2 v]
or if you want them seperated
repeat (length of [list1 v] :: list)
add (item (1 v) of [list1 v] :: list) to [list2 v]
delete (1 v) of [list1 v]

Read the title:
with an extension block

Last edited by gdavid04 (May 30, 2018 19:32:09)


My Scratch extensions
My latest project: Program the sprite

Powered by DjangoBB

Standard | Mobile