Alice Community  

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

Reply
 
Thread Tools Display Modes
Recursive and Iterative Walk Methods
Old
collegeconfused
Junior Member
 
Status: Offline
Posts: 1
Join Date: Apr 2013
Default Recursive and Iterative Walk Methods - 04-08-2013, 03:46 PM

Im using the he-builder to design a method for an assignment. The assignment is to make two different methods (see title) that will make a character walk to an object. The he-builder has a preset method for walking but it is based on the amount of time. How do i make both types of methods to walk to a specific object?
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 04-09-2013, 11:26 AM

Quote:
Originally Posted by collegeconfused View Post
Im using the he-builder to design a method for an assignment. The assignment is to make two different methods (see title) that will make a character walk to an object. The he-builder has a preset method for walking but it is based on the amount of time. How do i make both types of methods to walk to a specific object?
The s/he builder walk method does not move the person, it only makes the object go through the motions of walking. So you need to write two methods, one using recursion and the other iteration each takes an object parameter and causes the s/he to walk to the given object.
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.