Discuss Scratch
- Discussion Forums
- » Suggestions
- » pointing towards sprite boolean block
- danielhal
- Scratcher
100+ posts
pointing towards sprite boolean block
It would be quite useful if a boolean block was added to test if you are pointing towards a certain sprite.
It would look something like this if it were rough
It would look something like this if it were rough
<pointing [roughly v] towards [ v]::sensing>Or if you wanted to make sure it was precisely the center it would be
<pointing [precisely v] towards [ v]::sensing>
Last edited by danielhal (Sept. 8, 2014 07:11:33)
- mathfreak231
- Scratcher
1000+ posts
pointing towards sprite boolean block
no support because ambiguous:
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
i have grown as a person. and ive grown, literally. none of my posts from before 2022 represent me accurately.
- danielhal
- Scratcher
100+ posts
pointing towards sprite boolean block
Anywhere no support because ambiguous:
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
- mathfreak231
- Scratcher
1000+ posts
pointing towards sprite boolean block
It was a rhetorical question to show how much this block would confuse new Scratchers. It's the same reasoning behind why there is no “(message) broadcasted?” block.Anywhere no support because ambiguous:
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
i have grown as a person. and ive grown, literally. none of my posts from before 2022 represent me accurately.
- danielhal
- Scratcher
100+ posts
pointing towards sprite boolean block
Made it more obvious:It was a rhetorical question to show how much this block would confuse new Scratchers. It's the same reasoning behind why there is no “(message) broadcasted?” block.Anywhere no support because ambiguous:
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
It would look something like this if it were rough (without the if):
if <pointing [roughly V] towards [ v]> thenOr if you wanted to make sure it was precisely the center it would be
end
if <pointing [precisely V] towards [ v]> then
end
- RandomPerson1789
- Scratcher
100+ posts
pointing towards sprite boolean block
^^ no support because ambiguous:
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
- MushroomMan99
- Scratcher
100+ posts
pointing towards sprite boolean block
Maybe we could have a block for both no support because ambiguous:
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
when green flag clicked
if <(language) = [English ]> then
say [Everything is Awesome!] for (2) secs
end
if <(language) = [French ]> then
say [Tout est super-genial!] for (2) secs
end
if <(language) = [Italian ]> then
say [E meraviglioso!] for (2) secs
end
if <(language) = [Spanish ]> then
say [Todo es fabuloso!] for (2) secs
end
- danielhal
- Scratcher
100+ posts
pointing towards sprite boolean block
That's what the post was edited to say like 8 hours ago, nobody bothered looking and kept complaining that it was ambigous due to the fact that its not obviousMaybe we could have a block for both no support because ambiguous:
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
- MushroomMan99
- Scratcher
100+ posts
pointing towards sprite boolean block
Oh yeah. D'oh!That's what the post was edited to say like 8 hours ago, nobody bothered looking and kept complaining that it was ambigous due to the fact that its not obviousMaybe we could have a block for both no support because ambiguous:
would it return true if it were pointing precisely at the other sprite's costume center, or anywhere at the sprite?
when green flag clicked
if <(language) = [English ]> then
say [Everything is Awesome!] for (2) secs
end
if <(language) = [French ]> then
say [Tout est super-genial!] for (2) secs
end
if <(language) = [Italian ]> then
say [E meraviglioso!] for (2) secs
end
if <(language) = [Spanish ]> then
say [Todo es fabuloso!] for (2) secs
end
- stickfiregames
- Scratcher
1000+ posts
pointing towards sprite boolean block
Support for
(I know that block is in itself workaroundable, but it would make thing much simpler like this)
(direction to [Sprite1 v] :: sensing)so that this can be worked around with
<([abs v] of ((direction to [Sprite1 v] :: sensing) - (direction))) < (10)>
(I know that block is in itself workaroundable, but it would make thing much simpler like this)
Last edited by stickfiregames (Nov. 17, 2014 19:22:30)
- MegaApuTurkUltra
- Scratcher
1000+ posts
pointing towards sprite boolean block
Support for this Support for(direction to [Sprite1 v] :: sensing)so that this can be worked around with<([abs v] of ((direction to [Sprite1 v] :: sensing) - (direction))) < (10)>
Last edited by MegaApuTurkUltra (Nov. 17, 2014 18:55:11)
$(".box-head")[0].textContent = "committing AT crimes since $whenever"
- Discussion Forums
- » Suggestions
- » pointing towards sprite boolean block