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.
The Sprite Name drop down would have all the sprite names in the project, and a myself.
More Block Options Then Shown:
It took some time to write up the BB code for the scratch blocks
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 controlMore options at end of post.
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
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?
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
What movement would it detect?all, i'm changing the OP
Would it detect direction changes, x and y position changes, both, or only one?
- dogsmakemehappy
-
Scratcher
1000+ posts
When Sprite Moves Hat Block
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 pressedSure, +1
- gosoccerboy5
-
Scratcher
1000+ posts
When Sprite Moves Hat Block
It should be a dropdown, what are you talking aboutWould there be a “myself” option too?you would enter that sprites name
- dogsmakemehappy
-
Scratcher
1000+ posts
When Sprite Moves Hat Block
i tried to make it a dropdown, sorry if you didn't realize.It should be a dropdown, what are you talking aboutWould there be a “myself” option too?you would enter that sprites name
- dogsmakemehappy
-
Scratcher
1000+ posts
When Sprite Moves Hat Block
i tried to make it a dropdown, sorry if you didn't realize.It should be a dropdown, what are you talking aboutWould there be a “myself” option too?you would enter that sprites name
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)
- 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
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
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
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
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 he thought that each block would be listed, not that i was showing each possible option for the block in the opi 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
i think im going to change it to X and Y positionOh. That explains it. On a semi-related note, I'd recommend the “X Position and Y” option just be changed to “Position”.i think he thought that each block would be listed, not that i was showing each possible option for the block in the opi 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?
- 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
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!”





