#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Object Speed (Move) problem.


    Hey guys, this is my code:

    public void act()
    {
    world theWorld = (world) getWorld();
    if(!theWorld.isPaused)
    {
    move(1);
    setAutoImage();
    }
    }

    public void setAutoImage()
    {
    GreenfootImage autoimg = new GreenfootImage("Auto.png");
    if(getX() >= (getWorld().getWidth()-3))
    {
    getWorld().addObject(new Auto(), 0, 60);
    getWorld().removeObject(this);
    }
    setImage(autoimg);
    }
    }

    As you guys see i have move(1);
    It needs to go slower.. help please!
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,713
    Rep Power
    348

IMN logo majestic logo threadwatch logo seochat tools logo