One day, the Scratch-cat went out for a walk in the world of programming. He went pass all kinds of different programs until he got to Scratch. He looked inside. He looked around. He knew something was missing, but what? Suddenly it came to him.
"Wouldn't it be great if there was a button saying:"
> 'Sprite (Sprite dropdown list goes here) is touching (Sprite dropdown list goes here)'.
"After all, there already is one for colours!"
> (Colour (Colour dropdown list goes here) is touching (Colour dropdown list goes here)."
Please eleborate on this short story to say what you want next.
Offline
Agreed... I'm not sure how possible it is, but hey, it would be nice
Offline
Well, you can already accomplish such a thing, but this would make it much, much easier.
Make a variable called Sprite1TouchingSprite2
Then use this script (in Sprite 1):
When [green flag] clicked
if < touching [ sprite 2 ] >
set Sprite1TouchingSprite2 to 1
else
set Sprite1TouchingSprite2 to 0
end
Then, if the variable is 1, it is touching, otherwise, it's not. You can use this variable for any sprite in the project. It's a little time-consuming, but it still works just as well
Offline
I like it!
Offline
How exactly would the color drop-down list work? Would it display a column of colored squares, or would it accept text such as "red" or "blue"?
Offline
Doesn't the color one already exist? Well, the existing one only works if one of the colors belongs to its sprite. Would it be for two colors touching, even if both colors weren't in the sprite?
At Chrischb: Probably like the color selector with some pen blocks.
The sprite one isn't that necessary, but wouldn't be bad...
Offline
Jonathanpb wrote:
Doesn't the color one already exist? Well, the existing one only works if one of the colors belongs to its sprite. Would it be for two colors touching, even if both colors weren't in the sprite?
From what I gather, he/she is saying that there is already a colour block, and so is asking why there can't be an "if touching sprite" block.
Offline
Wolfie1996 wrote:
Jonathanpb wrote:
Doesn't the color one already exist? Well, the existing one only works if one of the colors belongs to its sprite. Would it be for two colors touching, even if both colors weren't in the sprite?
From what I gather, he/she is saying that there is already a colour block, and so is asking why there can't be an "if touching sprite" block.
![]()
...oops! ^_^
Offline
Jonathanpb wrote:
Wolfie1996 wrote:
Jonathanpb wrote:
Doesn't the color one already exist? Well, the existing one only works if one of the colors belongs to its sprite. Would it be for two colors touching, even if both colors weren't in the sprite?
From what I gather, he/she is saying that there is already a colour block, and so is asking why there can't be an "if touching sprite" block.
![]()
...oops! ^_^
It's OK - we all make mistakes
... I just blame mine on The List...
Offline
Yup. Wolfie is right, again!
Offline
Random_Guy_123 wrote:
Yup. Wolfie is right, again!
*extreme happiness*
And I agree that this block would be very useful
Offline
I have nothing to say to that. I agreee!
Offline
I love your signature!
MathWizz wrote:
Hmm... I have needed this a few times! This would make some things a lot easier!
Offline