Hello :)
I have some problem again here :D
so i want to make and actor shoot the projectile where he pointing or where the gun is pointed (i use my mouse here)
but in my code here, the bullet follow my mouse xD since its getX() and getY()
here my code
(Projectile class)
public void act()
{
MouseInfo mouse = Greenfoot.getMouseInfo();
turnTowards(mouse.getX(),mouse.getY());
move(5);
}
i dont know the method to make, after the mouse is clicked the object will move to the direction where the mouse located and still go forth .-.
thx all
