I have a lighthouse (yes, I know) pointing towards a "bleeper".
At the moment I have a standard:
if (Greenfoot.isKeyDown("d"))
turn (-1)
if (Greenfoot.isKeyDown("a"))
turn (1)
In the lighthouse to compliment the movement script (simple left and right move -8/8) so it LOOKS like the lighthouse is pointing to the bleeper. However, this illusion breaks quickly when in use and I have to reset the lighthouse every time I want to test (don't want to save the world unfinished).
Can anyone suggest away my lighthouse can "turnToward" the x and y coordinates of the bleeper?
Thanks in advance for any help-please try to keep it simple as this is my first school computing project :)

