06-15-2011, 06:20 AM
Could you be a little more clear on what you are trying to do?
I believe that the answer to your question is to make a Boolean (true/false) variable, set its value to true, and, in your checkDistance method, do this:
If world.Variable
If (whatever the conditions are)
world.Variable set value to false
bunny.bunny up
Else
[do nothing]
If (whatever the conditions are)
world.Variable set value to false
bunny.down
Else
[do nothing]
Else
[do nothing]
Did you understand all that? Basically, make a true variable, add an If/Else around your entire checkDistance method, and make the variable become false once either the bunny goes up or the bunny goes down.
Does that help at all?
Thank you for taking the time to read this signature. This signature loves you.
|