In a game I'm making. I want my character to move down in a decimal speed, but it just turns in a big circle and doesn't fall like it should.
public class Bag extends SmoothMover { private double BagSpeed = 0.5; /** * Act - do whatever the Bag wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { move(BagSpeed); turn(3); if (Greenfoot.isKeyDown("right")) { setLocation(getX()+3, getY()); } if (Greenfoot.isKeyDown("left")) { setLocation(getX()-3, getY()); } } }