Alice Community How do I make it so a character keeps walking until it is within a certain distance?

 How do I make it so a character keeps walking until it is within a certain distance?
 dragonmaster905 Member   Status: Offline Posts: 15 Join Date: May 2012 How do I make it so a character keeps walking until it is within a certain distance? - 05-27-2012, 09:57 PM My method is as follows: While cowboy is at least 5 meters from museum: do walk method If I am right, this should just keep on looping till the cowboy's close to the museum, right? Well, he just walks through the museum. Any help?
 GameKid Senior Member     Status: Offline Posts: 467 Join Date: May 2011 Location: My magnificent castle 05-28-2012, 12:44 AM Can you post the world? [COLOR=e4eaf2]Your text here[/COLOR] Come on, you know you want to try it.
sfunk
Senior Member

Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
05-28-2012, 01:22 AM

Quote:
 Originally Posted by dragonmaster905 My method is as follows: While cowboy is at least 5 meters from museum: do walk method If I am right, this should just keep on looping till the cowboy's close to the museum, right? Well, he just walks through the museum. Any help?
make the distance larger, Alice calculates distance from the center of each object, so in your case, it is measuring from the center of the cowboy to the center of the museum, so try to find the larger appropriate distance

If you are stuck on a project, check out the tutorials I made here at this link:

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

 dragonmaster905 Member   Status: Offline Posts: 15 Join Date: May 2012 05-28-2012, 06:44 AM Thanks sfunk! I'll try it! (oh and gamekid i'll post it if it doesn't work.)

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge