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
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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. } } |