I'm trying to climb in steps of ten, but instead I'm climbing immediately to y=-10 (the Y value of my start position is about 300).
Someone?
Yours,
Dennis
public void checkLiane(){
Actor lianeActor = getOneIntersectingObject(Liane.class);
yValue = getY();
while(lianeActor != null && Greenfoot.isKeyDown("up")){
System.out.println(yValue);
System.out.println("Ik probeer te klimmen.");
climbInLiane();
}
}
public void climbInLiane(){
// Vallen uitschakelen
yValue = getY();
yValue -= 10;
setLocation(getX(), yValue);
}

