I think that it would be a good idea to have "when touching <sprite> bounce" script. The "if on edge bounce" script works well and is often used but in many projects there are things in the middle that scratchers would like a sprite to bounce on. While there already is a way to do this, it is rather complicated and it would be much easier for scratchers if they could add it in a single block of code.
Offline
That'd only be possible if the sprite was a square or something. It's impossible to detect the gradient of a side of a sprite, so it's impossible to make it bounce accurately using that one block.
Offline
It'd still be impossible to detect the gradient.
It can be done with advanced trigonometery though. There's a fantastic project I saw a while back, I'll see if I can find it (I'm not hopeful though)
Offline
It's possible in game maker. I support, because the bounce scripts I make myself always get really glitchy.
Offline
In the very early days of Scratch I tried very very hard to get the community to accept the usefullness of such a block for younger scratchers but couldn't get any takers .
However, it should be possible in 2.0 for advanced scratchers to code up such a block (with all the variations on its action - bounce/reverse/reflect ) and then share it out with others
Offline
@RedRocker - "impossible"
You could make some assumptions and treat the two sprites as circles and do the "bounce" calculations based on that maybe?
Simon
Offline