Hi, id like to make my bee object move towards my flower object roughly (going off course a little bit on the way) i have basic code to move the bee which is this:
public Bee() { } public void flyAround() { //go forward move(1); //turn randomly if(Greenfoot.getRandomNumber(100) < 5) { turn(Greenfoot.getRandomNumber(20) - 15); } //if hit side, turn if(getX() <= 5 || getX() >= getWorld().getWidth() - 5) { turn(1); } //if hit side, turn if(getY() <= 5 || getY() >= getWorld().getHeight() - 5) { turn(1); } } }