Hello, I'm in the process of creating a dogfight game. However, I can't get any further with the Scrolling World, the problem is I don't know if it's possible to do it in such a way that I can move the actor freely without changing the controls.
private void checkKeypress()
{
if (Greenfoot.isKeyDown("w"))
{
move(15);
}
if (Greenfoot.isKeyDown("s"))
{
move(-1);
}
if (Greenfoot.isKeyDown("d"))
{
setRotation (getRotation() +5);
}
if (Greenfoot.isKeyDown("a"))
{
setRotation (getRotation() -5);
}
if (shotDelay == 0 && Greenfoot.isKeyDown("space"))
{
shotDelay = 8;
shoot();
}
}