Hi, does anyone have idea how to improve my code where the arrow hits the dragon. It only works when hitting the exact middle of the dragon image.
http://www.greenfoot.org/scenarios/6523 here is the scenario, don't currently want to make the code public.
1 2 3 4 5 6 7 8 | public void kill() { Actor arrow; arrow = getOneObjectAtOffset( 0 , 0 , Arrow. class ); if (arrow != null ) { setImage( "dead.png" ); pause(); |