Discuss Scratch

frogadier63
Scratcher
100+ posts

Move toward block

A move toward block would be useful so that instead of doing this:
repeat until <touching [sprite1 v] ?>
point towards [sprite1 v]
move (10) steps
end
go to [sprite1 v]

We could do this:
move toward [sprite1 v] at speed [10] :: motion



PizzaAddict4Life
Scratcher
1000+ posts

Move toward block

We already have that

glide (1) secs to (random position v) :: motion

For some reason that isn't a scratchblock in the scratch forums, weird

Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar

Studios
Be Moist | Forum Helpers

Topics
#RoadToMoist100

Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)

Whats a stick?

If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness

My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35





Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.



Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7








































































































Bippity Boppity Boo wow you found me congrats
Col_Cat228
Scratcher
1000+ posts

Move toward block

PizzaAddict4Life wrote:

We already have that

glide (1) secs to (random position v) :: motion

For some reason that isn't a scratchblock in the scratch forums, weird
That's not a scratchblock in the forums because the scratchblock plugin is the 2.0 block, and that block was made on 3.0 (i desired it so much XD)

“Everything in the universe is either an apple or not an apple”
-a smart guy
PizzaAddict4Life
Scratcher
1000+ posts

Move toward block

Col_Cat228 wrote:

PizzaAddict4Life wrote:

We already have that

glide (1) secs to (random position v) :: motion

For some reason that isn't a scratchblock in the scratch forums, weird
That's not a scratchblock in the forums because the scratchblock plugin is the 2.0 block, and that block was made on 3.0 (i desired it so much XD)

Ah, got it

Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar

Studios
Be Moist | Forum Helpers

Topics
#RoadToMoist100

Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)

Whats a stick?

If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness

My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35





Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.



Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7








































































































Bippity Boppity Boo wow you found me congrats
frogadier63
Scratcher
100+ posts

Move toward block

PizzaAddict4Life wrote:

We already have that

glide (1) secs to (random position v) :: motion

For some reason that isn't a scratchblock in the scratch forums, weird

glide (1) secs to (sprite1 v) :: motion
takes one second to move to any point, but
move toward [sprite1] at speed [10] :: motion
would move at the same speed no matter how far it is, so if you were at 0,0 it would take longer to move to 0,100 than 0,50.

Last edited by frogadier63 (June 4, 2020 17:31:39)




PizzaAddict4Life
Scratcher
1000+ posts

Move toward block

frogadier63 wrote:

PizzaAddict4Life wrote:

We already have that

glide (1) secs to (random position v) :: motion

For some reason that isn't a scratchblock in the scratch forums, weird

glide (1) secs to (sprite1 v) :: motion
Takes one second to move to any point, but
move toward [sprite1] at speed [10] :: motion
but would move at the same speed no matter how far it is, so if you were at 0,0 it would take longer to move to 0,100 than 0,50.

Interesting… interesting indeed

Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar

Studios
Be Moist | Forum Helpers

Topics
#RoadToMoist100

Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)

Whats a stick?

If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness

My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35





Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.



Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7








































































































Bippity Boppity Boo wow you found me congrats
Nambaseking01
Scratcher
1000+ posts

Move toward block

frogadier63 wrote:

repeat until <touching [sprite1 v] ?>
point towards [sprite1 v]
move (10) steps
end
go to [sprite1 v]

The workaround is right here in the post - and I understand the controversy against “easy workarounds”, but trust me, is it really that hard to recreate? It would also be very strange, suddenly having a block with which you move to sprites with a specific speed. The word speed hasn't been mentioned once in the Motions category and this attribute hasn't been in any other blocks (much requested by the community of course).

Hey there! My name is Nammy. I'm a male Forum Helper and Scratch Wiki Editor.
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!

Powered by DjangoBB