
January 13th, 2013, 02:56 PM
|
|
Registered User
|
|
Join Date: Jan 2013
Posts: 1
Time spent in forums: 43 m 6 sec
Reputation 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!
|