Hi
I completed a tutorial that used the blocks. It was found in the arrays catagory.
However, this block is not available in a new project I have started.
Any idea?
Thanks
I believe that is an extension.
Hmm, not sure why itās called that in the tutorial. But the equivalent in the real workspace is the āget random value from ā¦ā block.
(Itās in arrays, in the read category)
Hi there! The choose one of
block is what we call a āmagic block,ā made just to simplify tutorials. If youād like to use it in your project, you can copy the link from a project where youāre already using it and import that link as an extension.
Otherwise, @Sarge is right. Itās something that can be replicated by choosing a random image from an array.
Isnāt that the āget random value from (list)ā block? Itās at the bottom of the āreadā section in the arrays tab for me. You could always use
ā(list) get value at ((length of array (list)) [-] (1)ā
Any idea what the extension is called. I canāt see it. Thanks!
Iām not sure
Thatās so interesting! I wonder if there is a way to get āmagic blocksā from different tutorials into one project. Could be interesting idk.
Thanks everyone! I know I am way off with this setup but can someone please point me in the correct direction?
Error: Argument of type āSpriteā is not assignable to parameter of type āImageā.
Property ādrawIconā is missing in type āSpriteā.
I think the error is trying to tell you that youāre setting the projectile twice. The space where you have āget random value from listā only needs an image. That means you only need to add the image of the hearts to your array, then you can call those in the next line.
(Basically, remove the āsprite of kind [Projectile]ā from around the hearts.)
Hope that helps!
Thanks!
I think this must be close to the solution however there isnāt a way to just put the image in the array is there? I canāt sperate it from the sprite block.
Check Advanced->Images thereās a solo image block hanging out in there.