BouncingBall

Your browser needs java to view projects. Click here to install Java.

user_icon EdnaC shared it 1 year, 9 months ago
222 views, 2 taggers, 2 people love it, 28 downloads, in 1 gallery
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
Jacobo Jacobo 1 year, 6 months ago

Neato

RudyFriel RudyFriel 1 year, 7 months ago

its cool

EdnaC EdnaC 1 year, 9 months ago

Forgot to mention in the Notes: If you press "space" the game toggles between showing the ball or showing the sensor. If you watch the sensor, you'll see that it does what Jen's sensor does. The sensor looks a bit odd, because it is bouncing based on "Spin" and not just the angle of the slope.

Icarlyrocks Icarlyrocks 1 year, 9 months ago

This is perfect! good job!

EdnaC EdnaC 1 year, 9 months ago

I see and "odd" bounce now and again in the Java version that I don't see when running it in Scratch.

Jens Jens* 1 year, 9 months ago

Now it works online, nice!

Canthiar Canthiar 1 year, 9 months ago

neat

EdnaC EdnaC 1 year, 9 months ago

The color detection must be separate from the color "display", as you can ghost a sprite almost completely and it works fine. Mayhem's jumping project uses this method to detect platforms. The ball has to be a bit smaller than the sensor to avoid occluding the black edge. I'm puzzled by what is hanging the online version, it doesn't happen during a "bounce", so maybe it's something else. I'm suspicious that the issue is in ciphering the "Travel Direction", either a logic error or a "re-entrance" problem. I'll need to tidy the code up and try some things out...

Jens Jens* 1 year, 9 months ago

Excellent idea, to let the sensor fade using the ghost effect. I didn't even know that the color sensing mechanism would work in combination with the ghost effect. Unfortunately there seems to be some kind of bug in the online version when checking for touching color while rotating. But it does work fine in Scratch when downloaded. I also like the gravity it has. Very inspirational!

EdnaC EdnaC 1 year, 9 months ago

Works if downloaded, but locks up on-line! I'm hoping to add to it, but if it won't work online...

Please Wait...