Hey guys, I want to thank everyone for helping me out in the last month or so.
I have one more problem and then I will never bother you guys again.
I want the locations to be random.
I.E setLocation(getX()+ random int , getY() + random int);
Thank you for taking your time, most appreciated
public void CheckFollowplayer()
{
//move Down
Actor FollowBall;
FollowBall=getOneObjectAtOffset(0,-10,FollowBall.class);
if (FollowBall !=null)
{
setLocation(getX()+ 40, getY() + 3);
Greenfoot.getRandomNumber(20)-10);
//For the basic solution this is where you put your new code.
}
}
