Ever wanted to have functions in the data of your sprite? functions that have parameters?
well, this extension adds exactly that!
This took roughly 20 minutes to make, and should be simple to use. For help using the extention, if you copy-paste this code into the js editor in your project, you can see how to use it in blocks.
Ahhh. For a second, I thought this was @richard’s Improved Sprite Data function still, until I realized it was only meant for data-functions that accept sprite as parameters only. Good stuff!!!
The only thing I find interesting/hard to understand, is the parameter take in, since it shows only shows one reporter parameter, and could get kinda confusing since some would think there is only one parameter? Unless, you explained it or “it” explained itself with the array when you use the run function block.
Basically, the array is what allows multiple parameters. it can seem confusing at first, but it allows any function. (that doesnt return a value, but I have an idea for that)
What do they do? Its pretty simple, the [return (array of ...)] is the return block. It returns a value. the (sprite function last returned) will contain the data that was lat returned. You can see the 2 blocks in action here:
@teal256, I saw that you also wanted this, so here!