JoC #18: Bouncy balls with mouse input

    If you have passion and focus, you can achieve things that amaze yourself.

And we’re back! I hope you used your couple of weeks space between Joy of Code episodes to catch up and get a bit of practice with Greenfoot — and now we’re off again.

This time, we’re talking about dealing with mouse input. Very important for many games and other interactive programs.

Download video

Concepts discussed: world act method, reacting to mouse input

5 thoughts on “JoC #18: Bouncy balls with mouse input

  1. Great job, very inspiring videos, i can’t wait for the next one! What i am only missing is some notes (a page in pdf or just some text in your blog) outlining what was the video about, definitions, rules, tips and so on.

  2. Pingback: JOC#18: Adding Mouse Input to Bouncing Balls -

  3. Is there a way to add mouse inputs to the turtle game as if there are (x) amount of lives the turtle has? Or just to be able to have a turtle already on screen and add another turtle with a mouse click and be able to control both?

  4. Is there a way to make something execute once and only once when touching the walls? having trouble with atWorldEdge causing things to execute several times (for instance i tried making an array out of my colors.. to see if i could.. and it strobes through the array at WorldEdge.)

Leave a Reply

Your email address will not be published. Required fields are marked *