Thread: Counting steps
View Single Post
Senior Member
legolizard's Avatar
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default 06-14-2011, 08:35 PM

Well in in your walking method at the very end of the method(after the wolf has taken a step) you would increment the variable you have created. Next you would put an if statment that checked to see:

if(world.steps==some number)
  //That was easy.
else if(world.steps==some other number)
//That was easy.
//do nothing.
You would also have to change the number of times the bunny steps so the wolf could catch it; I don't know if you already know what your going to do for that.

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
Reply With Quote