I'm trying to make a game where I have the enemies spawn and then move to the left, but when I use this code
They will not actually spawn into the world. I don't know how to get them to spawn in and then move.
/**
* Spawns the enemy on the edge of the world randomly
*
*/
public void spawning()
{
getWorld().addObject(this,599, Greenfoot.getRandomNumber(400));
}
