Discuss Scratch

videobob
Scratcher
100+ posts

Speed Based Glide Block

The glide block in scratch is time based. “Have this glide to these coordinates in this amount of time”. What if there was a block in scratch that was like this: “Have this glide to these coordinates with this speed”? I made a project called “Proportional Glide Script” which is how I think it should work. It's a lot more convenient to have a block that does it instead of having to put in all of the scripts. I hope you consider the idea!
turkey3
Scratcher
1000+ posts

Speed Based Glide Block

You an use math to figure out the speed by the distanceInPixels / time

historical_supa
Scratcher
1000+ posts

Speed Based Glide Block

I would like this, the workaround's pretty hard. This would make gliding look more “natural” in my opinion.

Mockups:
glide to [mouse-pointer v] with speed [] :: motion
glide to x: [] y: [] with speed [] :: motion

I also think the speed should be how many 5 pixels per second.

Last edited by historical_supa (April 21, 2022 11:34:19)


i love life
k0d3rrr
Scratcher
1000+ posts

Speed Based Glide Block

Block ideas, block ideas!
glide with speed (10) to x: (0) y: (0):: motion // Design 2 (the better design)
This would be nice for smooth animations.

Last edited by k0d3rrr (April 21, 2022 13:57:04)



Animated button created by me


Despite what my About section says, I have been using Scratch before 2019. 2019 was the year that I first joined Scratch.
historical_supa
Scratcher
1000+ posts

Speed Based Glide Block

k0d3rrr wrote:

Block ideas, block ideas!
glide (1) secs to x: (0) y: (0) with speed (10):: motion // Design 1

glide with speed (10) to x: (0) y: (0):: motion // Design 2

glide with speed (10) to x: (0) y: (0) for (1) secs:: motion // Design 3
This would be nice for smooth animations.
I don't see how the 1st and 3rd design would be useful.

Last edited by historical_supa (April 21, 2022 11:37:10)


i love life
k0d3rrr
Scratcher
1000+ posts

Speed Based Glide Block

historical_supa wrote:

k0d3rrr wrote:

Block ideas, block ideas!
glide (1) secs to x: (0) y: (0) with speed (10):: motion // Design 1

glide with speed (10) to x: (0) y: (0):: motion // Design 2

glide with speed (10) to x: (0) y: (0) for (1) secs:: motion // Design 3
This would be nice for smooth animations.
I don't see how the 1st and 3rd design would be useful.
Oh, okay. the 1st and 3rd designs were just ideas for another block that could go with this block.
And I won't be suggesting that because that would be a duplicate of this.

Last edited by k0d3rrr (April 21, 2022 11:39:19)



Animated button created by me


Despite what my About section says, I have been using Scratch before 2019. 2019 was the year that I first joined Scratch.
7salad3salad
Scratcher
1000+ posts

Speed Based Glide Block

k0d3rrr wrote:

Block ideas, block ideas!
glide (1) secs to x: (0) y: (0) with speed (10):: motion // Design 1

glide with speed (10) to x: (0) y: (0):: motion // Design 2

glide with speed (10) to x: (0) y: (0) for (1) secs:: motion // Design 3
This would be nice for smooth animations.
Design 1 & 3 dont really make sense.

And you can already sort of make a faster speed by shortening the time you want them to glide so this might not be useful as its already basically implemented. If you don't know what i mean:
glide (10) secs to x: (x) y: (y)//would take longer so it would be slower
glide (2) secs to x: (x) y: (y)//would take the least amount of time so it would be faster
but if you really need precise speeds, then this could be useful i guess.

Last edited by 7salad3salad (April 21, 2022 12:52:23)



Forumer Post Count Bar Graph! (inspired by AIGamesDeveloper)
Project: Forummon by randomguy3513
hi, contrast
JUST BECAUSE THERES A WORKAROUND ISNT A GOOD REASON TO NOT SUPPORT!!!

dont call me 7salad
dont call me 7salsa lol
just simply “Salad” will do.

:]::#00289A// This is my pet Noobles! He protects my signature from [i]unwanted guests[/i]

B){

}::#800080//This is Noobles' big brother, Probles. He has returned and Noobles is happy to see him!
//oh, yeah, he is also cool so he wears sunglasses.

:P::cap sensing//This is their little brother, Doobles

old banner thnng

Powered by DjangoBB