I want to have a reporter that acts like an x position - available in all sprites as a "ftso" variable, with corresponding set command.
I've have something ready:
And now i need to access that said size variable.
What have you tried that didn't work?
Asking that block:
it errors out
Also tried this but result the same:
How can i make something like this? And is it possible at all?
Post a project example, link, or screenshot: Export Gist
The ask block is for asking a sprite for the value of a reporter, or a sprite local variable.
The block variables are not what you think they are. They do stay the same every time you call it, but they only exist for that instance of the block. Here's a demonstration of what I mean.
(Tip: you can get a picture of script by right-clicking the script, then select "Script pic", which will download an image of the script. You can also drag and drop these script pics into snap to get the script.)
If you run this block, each instance of it will report a different value, but each block will also add 1 to it's value every time you run it.
If you want to create a variable for all sprites, then you can create the variable in the blocks pallet in the variables category.
Then to change this variable in a block, you don't need to add it as a block variable.