Do you guys like my speed calculator block?

I’m making a library of different useful blocks and I want to show one you guys one!

Any ideas on how to improve it? Here’s a link to the project Snap! Build Your Own Blocks

Make Last time X/Y block variables, so it can keep track of any sprite

I have tried that. But it just messed up the whole block. Although it may have been due to previous math mistakes I’ll try that!

Also, if I make it a “script within block” variable it bugs way more. I’ll try new ways to improve it

Block variables are presistent, thats why you should use them for that, but script variables are for a single block run.

How do I make a block variable?

Right-click on the block, “block variables…”. Then, use the new arrow below the block to add the variables.

Thanks!