Hi, I use this scenario for a scrollingWorld.
http://www.greenfoot.org/scenarios/5806
What do I have to do, to make the actor move up or down if the key up or down is pressed
Moving forward works perfect.
That's my code of the actor's act methodThanks for your help
if(Greenfoot.isKeyDown("up")){ getWorld().setCameraDirection(0); setRotation(0); getWorld().turnCamera(-45); turn(-45); getWorld().moveCamera(5); } if(Greenfoot.isKeyDown("down")){ getWorld().setCameraDirection(0); setRotation(0); getWorld().turnCamera(45); turn(45); getWorld().moveCamera(10); } if(Greenfoot.isKeyDown("right")){ setRotation(0); getWorld().moveCamera(5); }