Moved block help…

I need help making a block

untitled script pic 4

SO its supposed to report true if a sprite has moved or false if not.

You should use a topic title that says something about the content. Adding a simple word already helps as you can see.

untitled script pic (2)

Alternatively, load up the “events” library and do this:

<has (position) changed?::variables>

WARNING: Due to the nature of block variables, you cannot simply put the above script inside a custom block titled “moved?” (instead you’ll have to do what @coder_07 did). To understand why, search the forum or manual for “block variables”.

Thanks and ill look at the manual.

uh… that thing’s like 3 years old

Block Variables haven’t changed in 3+ years.

yeah, I should have been more clear. I meant that the events library is definitely not in there so the explanation could be a little confusing.

The question is, when does this block need to report true? In other words, since when has the sprite moved that you care about?

Block variables are a good option, though you may or may need to handle an initial value condition. But presumably, that would only report true or false based on the last time the block was executed, which might be just what you need.

For questions like this it is helpful to share what you have tried and what happened when you tried that.

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