Hi Guys!!
As the title suggests I was wondering whether it is possible to change a players keystrokes while the scenario is running?
I have a world called controls and I want to be able to modify keystrokes without having to go into the code of actors.
Below is the movement code for my Nancy actor class who is one of two playable characters.
private void nancyMotion()
{
if (Greenfoot.isKeyDown("w"))
{
move(10);
}
if (Greenfoot.isKeyDown("a"))
{
turn(-10);
}
if (Greenfoot.isKeyDown("s"))
{
move(-10);
}
if (Greenfoot.isKeyDown("d"))
{
turn(10);
}
}
