Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.