Discuss Scratch

dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

This block would detect when a sprite moves

Block Info:
What Would This Block Do?
Make It So that you have an easier time detecting when a sprite moves, and this would be helpful for new scratchers.

What Does This Block Look Like?
Either events or motion, mock ups here are in events, scroll down for mock ups in motion.
When [X Position v] of [Sprite Name v] changes :: hat control
When [Y Position v] of [Sprite Name v] changes :: hat control
When [X and Y Position v] of [Sprite Name v] changes :: hat control
When [Direction v] of [Sprite Name v] changes :: hat control
More options at end of post.

The Sprite Name drop down would have all the sprite names in the project, and a myself.

More Block Options Then Shown:
When [X and Y Position And  Direction v] of [Sprite Name v] changes :: hat control
When [X Position and Direction v] of [Sprite Name v] changes :: hat control
When [Y Position and Direction v] of [Sprite Name v] changes :: hat control

It took some time to write up the BB code for the scratch blocks

Last edited by dogsmakemehappy (Jan. 22, 2021 21:40:36)

Ihatr
Scratcher
1000+ posts

When Sprite Moves Hat Block

What movement would it detect?

Would it detect direction changes, x and y position changes, both, or only one?
gosoccerboy5
Scratcher
1000+ posts

When Sprite Moves Hat Block

Would there be a “myself” option too?
dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

Ihatr wrote:

What movement would it detect?

Would it detect direction changes, x and y position changes, both, or only one?
all, i'm changing the OP
dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

gosoccerboy5 wrote:

Would there be a “myself” option too?
you would enter that sprites name
the2000
Scratcher
1000+ posts

When Sprite Moves Hat Block

Eh, it's possible to workaround but so are some other hat blocks like
when [loudness v] > (10)
and
when [a v] key pressed
Sure, +1
gosoccerboy5
Scratcher
1000+ posts

When Sprite Moves Hat Block

dogsmakemehappy wrote:

gosoccerboy5 wrote:

Would there be a “myself” option too?
you would enter that sprites name
It should be a dropdown, what are you talking about
dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

gosoccerboy5 wrote:

dogsmakemehappy wrote:

gosoccerboy5 wrote:

Would there be a “myself” option too?
you would enter that sprites name
It should be a dropdown, what are you talking about
i tried to make it a dropdown, sorry if you didn't realize.
dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

dogsmakemehappy wrote:

gosoccerboy5 wrote:

dogsmakemehappy wrote:

gosoccerboy5 wrote:

Would there be a “myself” option too?
you would enter that sprites name
It should be a dropdown, what are you talking about
i tried to make it a dropdown, sorry if you didn't realize.

i made it a proper drop down and tweaked some grammer
dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

Deleted

Last edited by dogsmakemehappy (Jan. 21, 2021 13:08:30)

dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

Bump
bsteichman
Scratcher
500+ posts

When Sprite Moves Hat Block

i feel like this would clog up the events section for people who don´t need it perhaps an extension.

When [Sprite Name v] [X Position v] changes :: hat extension

Last edited by bsteichman (Jan. 22, 2021 16:00:37)

dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

it's only 1 block though. I am just showing everything option the block will have in the OP so people could completely see what the block would do, but in the coding interface it will take only one hat blocks space
bsteichman
Scratcher
500+ posts

When Sprite Moves Hat Block

dogsmakemehappy wrote:

it's only 1 block though. I am just showing everything option the block will have in the OP so people could completely see what the block would do, but in the coding interface it will take only one hat blocks space

ok
the2000
Scratcher
1000+ posts

When Sprite Moves Hat Block

bsteichman wrote:

i feel like this would clog up the events section for people who don´t need it perhaps an extension.
An extension for one pretty simple block would be unnecessary. How would adding a single block clog up an already short section?
dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

the2000 wrote:

bsteichman wrote:

i feel like this would clog up the events section for people who don´t need it perhaps an extension.
An extension for one pretty simple block would be unnecessary. How would adding a single block clog up an already short section?

i think he thought that each block would be listed, not that i was showing each possible option for the block in the op
the2000
Scratcher
1000+ posts

When Sprite Moves Hat Block

dogsmakemehappy wrote:

the2000 wrote:

bsteichman wrote:

i feel like this would clog up the events section for people who don´t need it perhaps an extension.
An extension for one pretty simple block would be unnecessary. How would adding a single block clog up an already short section?
i think he thought that each block would be listed, not that i was showing each possible option for the block in the op
Oh. That explains it. On a semi-related note, I'd recommend the “X Position and Y” option just be changed to “Position”.
dogsmakemehappy
Scratcher
1000+ posts

When Sprite Moves Hat Block

the2000 wrote:

dogsmakemehappy wrote:

the2000 wrote:

bsteichman wrote:

i feel like this would clog up the events section for people who don´t need it perhaps an extension.
An extension for one pretty simple block would be unnecessary. How would adding a single block clog up an already short section?
i think he thought that each block would be listed, not that i was showing each possible option for the block in the op
Oh. That explains it. On a semi-related note, I'd recommend the “X Position and Y” option just be changed to “Position”.
i think im going to change it to X and Y position
Ihatr
Scratcher
1000+ posts

When Sprite Moves Hat Block

Maybe the blocks should be changed to look something like this?

When [myself v]'s [x position v] changes :: hat :: events
Seth_Zaw
Scratcher
100+ posts

When Sprite Moves Hat Block

gosoccerboy5 wrote:

Would there be a “myself” option too?
You have to say “my”, not “myself”. Like, someone wouldn't say “Give that back! That's myself money!”

Powered by DjangoBB