I'm trying to make a green blob move continuously in one direction that is decided by the player but I don't have a clue how to make the blobs movement continuous?
This is what I have so far:
public void turnBlob()
{
if(Greenfoot.isKeyDown("left"))
{
turn(-1);
}
if(Greenfoot.isKeyDown("right"))
{
turn(1);
}
}
/**
* This method fires the blob.
*/
public void fireBlob()
{
if(Greenfoot.mouseClicked(this))
{
}
}
