Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Getting/setting a variable's/list's value with an extension block?
- 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
If yes, how?
If i want to make a
add [list v]'s contents to [list v]::extensionblock for example.
Last edited by gdavid04 (Nov. 3, 2017 15:22:21)
- 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?
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
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?
add [list v]'s contents to [list v]::extensionadd (list1 :: list) to [list2 v]or if you want them seperatedrepeat (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)
- Garamol56
- Scratcher
100+ posts
Getting/setting a variable's/list's value with an extension block?
Jeez, no need to be rude. Read the title:with an extension block
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
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>>>>
- Discussion Forums
- » Developing Scratch Extensions
- » Getting/setting a variable's/list's value with an extension block?