Okay, this one to me seems quite tricky to figure out. So the enemy shoots a projectile at the player, this projectile then follows the player around. That part is easy just by having this function in the act() of the bullet.
now if we add something like 50 to those values, the projectile becomes sluggish. like so :
the problem with this is that it slugs in only one direction. to fix that i think something like this is needed:
the condition for the if will need to determine in which direction the player is moving. is there a way to do this?
public void aimbot(){ turnTowards(player.getX(), player.getY()); }
public void aimbot(){ turnTowards(player.getX() + 50, player.getY() + 50); }
public void aimbot(){ if(){ turnTowards(player.getX()+50, player.getY()+50); } else{ turnTowards(player.getX()-50, player.getY()-50); } }