I have a scenario with this code:
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class enemy here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class enemy extends Actor
{
/**
* Act - do whatever the enemy wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act ()
{ move(4);
}
public void moveAround ()
{
move(4);
turn(Greenfoot.getRandomNumber(90));
}
}
but my character is not turning but going in a straight line... what have I done wrong?
Thanks for your help
WatchPatronus

