Discuss Scratch

medians
Scratcher
1000+ posts

a [point towards x( ) y( ) block

sideyard wrote:

I don't think this would work. There is already the
glide () secs to x: (0) y: (0)
block. I understand the need for new Scratch blocks on this website, but I wouldn't support this.
That's not the same thing, it just makes the sprite go towards the position in the amount of time without changing the direction of the current sprite (well, you get what I mean), while this makes the sprite point towards the point
WillBAug1914
Scratcher
100+ posts

a [point towards x( ) y( ) block

guys we will need the point in x y block
WillBAug1914
Scratcher
100+ posts

a [point towards x( ) y( ) block

that s what IM Saying
BigNate469
Scratcher
1000+ posts

a [point towards x( ) y( ) block

when the post button clicked ::events cat
point towards [front page v]
move (10) steps
A.K.A. bump
LegoMaster1190
Scratcher
13 posts

a [point towards x( ) y( ) block

This should be added
MinionMaker27
Scratcher
19 posts

a [point towards x( ) y( ) block

turkey3 wrote:

You can use trigonometry to replicate this: so if I want to point toward x:40 y:60
point in direction (([atan] of ((((60) - (y position)) / ((40) - (x position))))) - (90))
Sorry if that's a bit off.
The problem is most people in Scratch's target audience haven't been taught trigonometry yet as its a concept that (at least in the US) is taught in high school geometry. Anyway I support as this could help younger audiences.

Last edited by MinionMaker27 (March 19, 2025 20:51:19)

medians
Scratcher
1000+ posts

a [point towards x( ) y( ) block

Bringing this topic up.
DogLover8425
Scratcher
40 posts

a [point towards x( ) y( ) block

MinionMaker27 wrote:

turkey3 wrote:

You can use trigonometry to replicate this: so if I want to point toward x:40 y:60
point in direction (([atan] of ((((60) - (y position)) / ((40) - (x position))))) - (90))
Sorry if that's a bit off.
The problem is most people in Scratch's target audience haven't been taught trigonometry yet as its a concept that (at least in the US) is taught in high school geometry. Anyway I support as this could help younger audiences.

Raycast.
CodeComet6161
Scratcher
1000+ posts

a [point towards x( ) y( ) block

look at the workaround guide brother
Bitebite12
Scratcher
1000+ posts

a [point towards x( ) y( ) block

Bringing this topic up.
theoW1200
Scratcher
100+ posts

a [point towards x( ) y( ) block

how come the suggestions that are like 11+ years old still arent implemented
ywc2
Scratcher
100+ posts

a [point towards x( ) y( ) block

Current workaround that I see used often:

point in direction (([atan v] of (((x) - (x position)) / ((y) - (y position)))::operators) + ((180) * <(y) < (y position)>))

I somewhat support this, it's convenient but not absolutely needed. I find it similar to the argument for exponents in scratch; there's always a way but there could be a better way.
robodiskjokey
Scratcher
100+ posts

a [point towards x( ) y( ) block

willehren wrote:

It would be cool if there was a block that made the sprite point towards an x and y “place”
You could do this
(Keep in mind this sprite can be called “Pos”
when green flag clicked
go to x: (100) y: (100)
hide

Then you can have

when green flag clicked
point towards [Pos v]

Though this is very un-efficient and I would like an alternative option.
Support!
OatchiTheDog
Scratcher
2 posts

a [point towards x( ) y( ) block

when green flag clicked
turn cw (15) degrees
IMAG0od
New Scratcher
26 posts

a [point towards x( ) y( ) block

I support this suggestion.
tagrim123
Scratcher
500+ posts

a [point towards x( ) y( ) block

Define point to X:  (x) Y: (y)
point in direction (([atan v] of (((y ::custom) - (y position)) / ((x ::custom) - (x position)))) - (90)
mtaka4
Scratcher
100+ posts

a [point towards x( ) y( ) block

IMAG0od wrote:

I support this suggestion.
but why do you support?

______________________
Also, to anyone saying to use the workaround, it's not like it's obvious, and really easy.

Powered by DjangoBB