I used your idea to "answer" the same forum question. Like your project, mine doesn't work on-line! (link to project)
The thing in common (that stands out to me) is the rotate until "color" touches "color" test. Interestingly, my project resets to start conditions on my computer, but the on-line version "locks"...
Thanks, AnNoYeD. In the online version the bouncer sometimes just reverses its direction without first rotating until both sensors touch the surface. I have no idea, why, though.
Download "bounce"(one sprite and one script) and open it in Scratch
Project Notes
this project attempts to let a sprite bounce off irregular surfaces.
What makes this project special is that the bouncer can rotate around its center, and also around each sensor, simply using copies of the same costume with the rotation axis set to different positions each, thereby enabling it to measure the wall's slope at any point.
If it gets stuck somewhere press the green flag to reset it.
For some reason it currently does *not* work correctly online all the time. It's supposed to rotate until both sensors touch the surface in order to measure the surface's slope. If it doesn't do that online, you may need to download it.
Comments
You need to be logged in to post comments
Add a Comment
Fun And FUNNY FUNNY FUNNY
(view all replies)Comment Reply
this is really good!
(view all replies)Comment Reply
Teriffic! I love these one sprite, one script projects!
(view all replies)Comment Reply
amazing idea
(view all replies)Comment Reply
Sometimes it just bounces without turning first. This only happens online, though, mysteriously...
(view all replies)Comment Reply
It seems to work ok for me in v23 of the online scratch player.
(view all replies)Comment Reply
I used your idea to "answer" the same forum question. Like your project, mine doesn't work on-line! (link to project) The thing in common (that stands out to me) is the rotate until "color" touches "color" test. Interestingly, my project resets to start conditions on my computer, but the on-line version "locks"...
(view all replies)Comment Reply
Very clever approach, and it runs fast! I tried to come up with something to slope detect, but it was much coarser (and pretty clunky)...
(view all replies)Comment Reply
kool
(view all replies)Comment Reply
Nice. I made a slightly smaller version of that a while back, but yours works much faster.
(view all replies)Comment Reply
Thanks, AnNoYeD. In the online version the bouncer sometimes just reverses its direction without first rotating until both sensors touch the surface. I have no idea, why, though.
(view all replies)Comment Reply
Cool! But I don't see the difference between the downloaded version and this version. Its still pretty cool though
(view all replies)Comment Reply
Hmm... this project doesn't behave correctly online, how interesting... must be some glitch about color sensing in the java player.
(view all replies)Comment Reply