In this recipe, we will make two robots dance when the user clicks on the scene. We will define a mouse button listener and we will add the necessary code to make two robots dance when the user clicks on the scene.
We have to be working on a project with two characters from the Looking Glass Characters gallery. Therefore, we will create a new project and set a simple scene:
SnowyProject.a3pas the desired template for the new project and click OK. Alice will display a snowy ground with a light blue sky.