Discuss Scratch
- Discussion Forums
- » Suggestions
- » a block we need [Boolean reporter: pointing towards a sprite]
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]
We need a block that would be in the sensing column called make a <pointing towards (sprite1)?>
Last edited by Paddle2See (June 24, 2019 14:49:30)
- Botcho_Otkho
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
When would it report true? If the sprite is pointing towards the center of the sprite or if a line starting from the center of the sprite touches that other sprite? (sorry, but I didn't know how to explain better)
Mockup:
Mockup:
pointing towards [Sprite 1 v]?::boolean sensing
Last edited by Botcho_Otkho (June 18, 2019 12:58:27)
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]
I don't understand?
- Botcho_Otkho
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
I mean, would it report true if the sprite we are controlling is pointing to the center of the other sprite or if it is pointing anywhere towards the sprite? I don't understand?
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]
So why can't we just get a
<pointing towards[ …] ?>
Last edited by APS_Ethan (June 17, 2019 15:45:18)
- Botcho_Otkho
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
Because it's still unclear when it would report true nor false. Could you answer to my question above, please? So why can't we just get a<pointing towards[ …] ?>
Last edited by Botcho_Otkho (June 18, 2019 12:53:58)
- findanegg
-
500+ posts
a block we need [Boolean reporter: pointing towards a sprite]
When would it be true. For what specific situation would this hypothetical block return as “true”.
- JackK211424
-
500+ posts
a block we need [Boolean reporter: pointing towards a sprite]
agreed. you what if the direction is .00000000001 degrees off? would it still return true? because it is still pointing at it, its just a sliver off. When would it be true. For what specific situation would this hypothetical block return as “true”.
- Jonathan50
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
Perhaps it'd report true if and only if the sprite's rotation center would eventually enter the other sprite if it kept moving forward? agreed. you what if the direction is .00000000001 degrees off? would it still return true? because it is still pointing at it, its just a sliver off.
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]
Why can't we get a
<pointing towards[ sprite1]?>
Last edited by APS_Ethan (June 18, 2019 07:15:38)
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]
so why can't we just get a

pointing towards [Sprite 1 v]?::boolean sensing

Last edited by APS_Ethan (June 24, 2019 15:44:03)
- MrFluffyPenguins
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
Support, also, it would detect true if a thin line came out of the center of a sprite and touched another sprite. Like a “line of sight”.
Last edited by MrFluffyPenguins (June 18, 2019 13:02:49)
- Botcho_Otkho
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
Why can't we get a<pointing towards[ sprite1]?>
so why can't we just get apointing towards [Sprite 1 v]?::boolean sensing
Because, not to be rude, but it's the fourth time someone asks you when would it report true, but you still didn't answer. I'm sorry, but it's not good to make users assume what a block does, you should explain what how would it work.
Last edited by Botcho_Otkho (June 18, 2019 12:56:30)
- MrFluffyPenguins
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
Did you not read my post from above?Why can't we get a<pointing towards[ sprite1]?>so why can't we just get apointing towards [Sprite 1 v]?::boolean sensing
Because, not to be rude, but it's the fourth time someone asks you when would it report true, but you still didn't answer. I'm sorry, but it's not good to make users assume what a block does, you should explain what how would it work.
Support, also, it would detect true if a thin line came out of the center of a sprite and touched another sprite. Like a “line of sight”.
- Botcho_Otkho
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
Did the user that wrote this topic tell you about how the block would work? Yours is still an assumption. Did you not read my post from above?Support, also, it would detect true if a thin line came out of the center of a sprite and touched another sprite. Like a “line of sight”.
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]
we could also do with
[my variable] go to x:(0) y:(0)
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]

Last edited by APS_Ethan (June 20, 2019 15:59:30)
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]

Last edited by APS_Ethan (June 20, 2019 15:59:48)
- APS_Ethan
-
12 posts
a block we need [Boolean reporter: pointing towards a sprite]
we should also get
[my variable v], go to x:(0) y:(0)::vaiables
Last edited by APS_Ethan (June 24, 2019 15:38:39)
- Paddle2See
-
1000+ posts
a block we need [Boolean reporter: pointing towards a sprite]
It's not clear to me exactly how this would be used - or what it really means. I think the definition might depend on the application - which means it probably should be left to the programmer to implement.
I have done something similar as to what I imagine the proposed block would do by using a 100% ghosted sprite with a costume consisting of a long line. By positioning the ghosted sprite on another sprite and orienting it in the same direction, I could then query the ghosted sprite to see if it was touching a second target sprite. By varying the thickness of the line costume (or using a triangle), I could control the “accuracy” of operation to fit my application.
Because of the fairly simple workaround - and the lack of definition of exactly how such a block would be used, I believe this suggestion is rejected at this time. Thanks for taking the time to propose it, though, and keep thinking of ways to make Scratch better
I have done something similar as to what I imagine the proposed block would do by using a 100% ghosted sprite with a costume consisting of a long line. By positioning the ghosted sprite on another sprite and orienting it in the same direction, I could then query the ghosted sprite to see if it was touching a second target sprite. By varying the thickness of the line costume (or using a triangle), I could control the “accuracy” of operation to fit my application.
Because of the fairly simple workaround - and the lack of definition of exactly how such a block would be used, I believe this suggestion is rejected at this time. Thanks for taking the time to propose it, though, and keep thinking of ways to make Scratch better

- Discussion Forums
- » Suggestions
-
» a block we need [Boolean reporter: pointing towards a sprite]