For this sprite only variables in all sprites - like x/y position

What's problem you are encountering?

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:
image

And now i need to access that said size variable.

What have you tried that didn't work?
Asking that block:
image
it errors out
Also tried this but result the same:
image
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.
image
(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.
image

Then to change this variable in a block, you don't need to add it as a block variable.
image

... but if you want it separate for each sprite, you click "for this sprite only" when you create the sprite.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.