I think i figured out most of it. For player1score and player2score i replaced it with player_1.player1score and player_2.player2score and for the object placement i removed all of the world words because its in the World class so its not necessary. But I'm still not sure what i do for isTouching. I tried doing the same thing with the player_1.isTouching but it says "isTouching(java.lang.Class<?>) has protected access in greenfoot.Actor. "
Please let me know if my modifications were correct.
public void plutoTouched1()
{
if (player_1.player1score > player_2.player2score && player_1.isTouching(Pluto.class))
{
addObject(new Player_1_Wins(),getWidth()/2, getHeight()/2);
Greenfoot.playSound("Victory.mp3");
Greenfoot.stop();
}
}