Discuss Scratch

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
<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?

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

mathfreak231 wrote:

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?
Anywhere
mathfreak231
Scratcher
1000+ posts

pointing towards sprite boolean block

danielhal wrote:

mathfreak231 wrote:

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?
Anywhere
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.

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

mathfreak231 wrote:

danielhal wrote:

mathfreak231 wrote:

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?
Anywhere
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.
Made it more obvious:
It would look something like this if it were rough (without the if):
if <pointing [roughly V] towards [ v]> then

end
Or if you wanted to make sure it was precisely the center it would be
if <pointing [precisely V] towards [ v]> then

end
dracae
Scratcher
1000+ posts

pointing towards sprite boolean block

As mathfreak231 said, this suggestion is too confusing and ambiguous to be implemented.

Sorry, but no support.

RandomPerson1789
Scratcher
100+ posts

pointing towards sprite boolean block

mathfreak231 wrote:

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

mathfreak231 wrote:

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?
Maybe we could have a block for both

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

MushroomMan99 wrote:

mathfreak231 wrote:

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?
Maybe we could have a block for both
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 obvious
MushroomMan99
Scratcher
100+ posts

pointing towards sprite boolean block

danielhal wrote:

MushroomMan99 wrote:

mathfreak231 wrote:

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?
Maybe we could have a block for both
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 obvious
Oh yeah. D'oh!

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
(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)











If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;
MegaApuTurkUltra
Scratcher
1000+ posts

pointing towards sprite boolean block

danielhal wrote:

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)>
Support for this

Last edited by MegaApuTurkUltra (Nov. 17, 2014 18:55:11)


$(".box-head")[0].textContent = "committing AT crimes since $whenever"

Powered by DjangoBB