BouncingBall

user_icon EdnaC shared it 4 months, 3 weeks ago
162 views, 2 people love it, 2 taggers, 21 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 2 months, 1 week ago

Neato

(view all replies)
Comment Reply

RudyFriel RudyFriel 2 months, 1 week ago

its cool

(view all replies)
Comment Reply

EdnaC EdnaC 4 months, 1 week 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.

(view all replies)
Comment Reply

Icarlyrocks Icarlyrocks 4 months, 2 weeks ago

This is perfect! good job!

(view all replies)
Comment Reply

EdnaC EdnaC 4 months, 2 weeks ago

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

(view all replies)
Comment Reply

Jens Jens 4 months, 2 weeks ago

Now it works online, nice!

(view all replies)
Comment Reply

Canthiar Canthiar 4 months, 2 weeks ago

neat

(view all replies)
Comment Reply

EdnaC EdnaC 4 months, 3 weeks 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...

(view all replies)
Comment Reply

Jens Jens 4 months, 3 weeks 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!

(view all replies)
Comment Reply

EdnaC EdnaC 4 months, 3 weeks ago

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

(view all replies)
Comment Reply