FabioPacheco wrote...
So I need to create a new class called ActorIcon and put the code you gave me inside, right?And how do I call the class ActorIcon to work in myWorld?
Create them as you create the game actors that require instrument actors. Use the following example as a format:
Violin violin = new Violin(); // create game actor ActorIcon icon = new ActorIcon(violin); // create instrument actor addObject(icon, 20, 90); // add instrument actor to world addObject(violin, << wherever >>); // add game actor to world