Hi community,
i made a spaceship that moves like that:
but if i stop pressing "W" it comes instantly to a stop. how can i make it to get slower after releasing the button?
right now it looks unnatural.
thanks
private void Bewegen() { if (Greenfoot.isKeyDown("a")) { turn(-4); } if (Greenfoot.isKeyDown("d")) { turn(4); } if (Greenfoot.isKeyDown("w")) { move(-5); } }