Discuss Scratch

Maximouse
Scratcher
1000+ posts

If touching [ v] bounce block

Tunde123 wrote:

vecn wrote:

How long does it take for a suggestion to be approved by the Scratch Team?
It depends if it's supported mostly and a ST member also approves of it.
I think it mostly depends on how much time the developers have – they want to work on more important things first.
k0d3rrr
Scratcher
1000+ posts

If touching [ v] bounce block

Bump.
jackson49
Scratcher
1000+ posts

If touching [ v] bounce block

Bump
trinexty
Scratcher
23 posts

If touching [ v] bounce block

Zro716 wrote:

what does this say???
the_blue_shark
New Scratcher
1 post

If touching [ v] bounce block

stickfiregames wrote:

You can bounce off a straight line or circle quite easily, but only in a few cases (off a straight line of a known angle, or a circle with a known centre). The reason this block wouldn't work is that it would be too intensive to actually calculate the angle of the surface, especially for bitmaps.

By the way, the basic script to bounce off a line is
turn right (((angle :: grey) - (direction)) * (2)) degrees
where (angle) is the angle of the line.

U are a hero
cookieclickerer33
Scratcher
1000+ posts

If touching [ v] bounce block

Btw here’s the snap teams workaround to this block, this is ONLY for edge

2/3 of these blocks aren’t in scratch and half of them can’t even be recreated in scratch

Now can you see why this wouldn’t be possible?

Last edited by cookieclickerer33 (Dec. 15, 2023 15:31:06)

starlightsparker
Scratcher
1000+ posts

If touching [ v] bounce block

cookieclickerer33 wrote:

Btw here’s the snap teams workaround to this block, this is ONLY for edge

2/3 of these blocks aren’t in scratch and half of them can’t even be recreated in scratch

Now can you see why this wouldn’t be possible?
thats wild
like i could build a rocket if i was smart enough to code that

anyways, it still would be possible. if sprite1 is making contact with sprite2 regardless of angle. bounce
its easy right
MJ-Fights
Scratcher
100+ posts

If touching [ v] bounce block

9 Year Discussion…
MJ-Fights
Scratcher
100+ posts

If touching [ v] bounce block

MJ-Fights wrote:

9 Year Discussion…
Scratch Team, please consider it, please.
mybearworld
Scratcher
1000+ posts

If touching [ v] bounce block

cookieclickerer33 wrote:

(#142)
2/3 of these blocks aren’t in scratch and half of them can’t even be recreated in scratch

Now can you see why this wouldn’t be possible?
The Scratch Team doesn't have to code their blocks in Scratch, though.
gdfsgdfsgdfg
Scratcher
1000+ posts

If touching [ v] bounce block

Was the simple workaround correct?
doggy_boi1
Scratcher
1000+ posts

If touching [ v] bounce block

~nevermind~

Last edited by doggy_boi1 (April 21, 2024 01:05:05)

MountY_Backup
Scratcher
100+ posts

If touching [ v] bounce block

Bumpy Bump
twin-programmers
Scratcher
0 posts

If touching [ v] bounce block

hi I like your ideas
hypercode96
Scratcher
100+ posts

If touching [ v] bounce block

what if it was like this:
if on [edge v], bounce
if on [sprite v], bounce
abdavark
Scratcher
500+ posts

If touching [ v] bounce block

Support! Once, I made Pong, but with a twist, and as I put in the Notes & Credits, the balls interact with the paddles differently because of the lack of this block in Scratch (that's not the twist). This block would be very useful for that and similar scenarios.

For uneven edges, the block could average the edge. And, as far as I know, there's no easy workaround. What I expect the block would look like:
if on (red paddle v), bounce::motion
if on (blue paddle v), bounce::motion
I also imagine that this block would replace the current if on edge bounce block with:
if on (edge v), bounce::motion
And no, I couldn't just use
point in direction ((0) - (direction))
because then if it hit the paddle from the top/bottom it would just go straight through it up/down!
helloagain_57
Scratcher
100+ posts

If touching [ v] bounce block

Support! Also we could also add the Bouce to angle block too.

(Preview of blocks here.)

if touching (edge v), bounce::motion
if<>, bounce::motion
bounce to angle ()::motion
helloagain_57
Scratcher
100+ posts

If touching [ v] bounce block

LionsStair wrote:

Scratch is not a gravity/velocity simulator so it would not be able to simulate bouncing off the ball/object without having to do TONS of math like: possible directions, the applied force of the ball, distance it should bounce, etc. This block doesn't really have a good USE and would be almost impossible to produce, there is a workaround that makes a ball bounce always in a certain direction though! Most blocks that have too specific use or are VERY vague, like your block, are really hard to implement so no support.
That's not what the block means…
BigNate469
Scratcher
1000+ posts

If touching [ v] bounce block

helloagain_57 wrote:

if<>, bounce::motion
What angle would it bounce to?

helloagain_57 wrote:

bounce to angle ()::motion
point in direction ()
Would have the same effect.
nikky10000000
Scratcher
500+ posts

If touching [ v] bounce block

if on (edge v), bounce :: motion

Last edited by nikky10000000 (Dec. 24, 2024 00:18:40)

Powered by DjangoBB