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
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]

Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
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
Garamol56
Scratcher
100+ posts

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

gdavid04 wrote:

Read the title:
with an extension block
Jeez, no need to be rude.

Why do you even need to do this with an extension block?

Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Marcos_Paulo_CFC
Scratcher
1 post

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

<<> xor <>>
The exclusive or
<<<A> or <B>> and <not <<A> and <B>>>>

Powered by DjangoBB