Discuss Scratch
- Discussion Forums
- » Suggestions
- » If touching [ v] bounce block
- Maximouse
-
Scratcher
1000+ posts
If touching [ v] bounce block
I think it mostly depends on how much time the developers have – they want to work on more important things first.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.
- the_blue_shark
-
New Scratcher
1 post
If touching [ v] bounce block
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 isturn right (((angle :: grey) - (direction)) * (2)) degreeswhere (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?

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
Btw here’s the snap teams workaround to this block, this is ONLY for edgethats wild
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?
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…Scratch Team, please consider it, please.
- mybearworld
-
Scratcher
1000+ posts
If touching [ v] bounce block
(#142)The Scratch Team doesn't have to code their blocks in Scratch, though.
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?
- doggy_boi1
-
Scratcher
1000+ posts
If touching [ v] bounce block
~nevermind~
Last edited by doggy_boi1 (April 21, 2024 01:05:05)
- 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:
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::motionI also imagine that this block would replace the current if on edge bounce block with:
if on (blue paddle v), bounce::motion
if on (edge v), bounce::motionAnd 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.)
(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
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
What angle would it bounce to?if<>, bounce::motion
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)
- Discussion Forums
- » Suggestions
-
» If touching [ v] bounce block
















