You now need to set up the dance code - just like the code that is currently in my first method. But that code works on the girl - whereas we will want our code to work with the new parameter we have just created (bear with this, if it all seems a bit crazy just now)...
Step 7. Click on the dancer parameter at the top of the code pane and drag it into the code body - over the slot that currently says Do Nothing.
Step 8. When you let go, a menu will pop up of all the commands available on the dancer object - select world.dance in the middle.dancer move - the move operation - and then the direction forward and then the amount other... and then type in 2.5 and click OK. Phew. You should now have a move instruction in the method body that will move the dancer forward by 2.5 meters.
Menu selections:
The finished method:
Step 9. Now create a second call to move on the dancer parameter, but this time get the dancer to move backwards by 2.5 meters.
This is enough to get us started - it's not the whole dance routine - but hopefully you can begin to get the idea. We are specifying in a general way how the dance routine works. We're not working with a specific dancer, only a "general" dancer - we are assuming that when the method executes, a specific dancer will have been supplied to take the place of the general dancer and will be performing the actions... let's see how we can get that working now!