hoegie wrote...
I have altered it a bit because I want the turtle to change it´ s animation as long as the timer runs.
In the animationmethod "animateTurtleHit()" you can see that I work with a Boolean value "turtleHit"
The idea is to use it as a switch to animateTurtleHit (timed method) or to animate a normal turtle. When the turtle is hit, the animation lasts 100 counts and the returns to normal animation.
I can make switch it on, I can switch it off, but I can not use it within the timer?// instead of if (turtleHit) // use if (turtleTimer > 0)
Is there any way of avoiding this line of code or using something different? I have to explain to my teacher every code use but this is a bit too difficult for me to explain
< Code Omitted >
Let me explain in a bit more detail. The Actor class code contains an instance reference field for the world the actor is currently in; namely:
/** Reference to the world that this actor is a part of. */ World world;

