How do I make an actor(A) appear where another actor(B) is located at?? and by appear I meant at the preset location of actor B and actor A must move along with actor B unless I press another key to release it.
/** In ActorB Class */ // add field private Actor actorA; // 'null' by default // via act, after moving if (actorA != null) actorA.setLocation(getX(), getY()); // to release if (Greenfoot.isKeyDown(<< release key >>)) actorA = null;