Right click on class of character (in classes section) and select "Open editor". Then, select all and paste in a post here. Please refer to the Greenfoot tutorials.
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class EnemyPP2 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class EnemyPP2 extends Actor
{
/**
* Act - do whatever the EnemyPP2 wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
// Add your action code here.
}
}