What you might do is add this at the beginning of the method:
That will print the rotation into the debugger.
System.out.println("" + getRotation());
System.out.println("" + getRotation());
java.lang.StackOverflowError at greenfoot.Actor.getClassImage(Actor.java:628) at greenfoot.Actor.<init>(Actor.java:124) at Blip.<init>(Blip.java:50) at Blip.<init>(Blip.java:69)
private void method() { method(); }
int ypos = getY(); if (ypos > 0) { ypos = ypos - 5; setLocation(getX(), ypos);
int ypos = getY(); if (ypos > 0) { move(5);
public Shot(Blip blip) { setRotation(blip.getRotation()); }