Alice Community  

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

Reply
 
Thread Tools Display Modes
Need Help Sailing
Old
mnstr8401
Junior Member
 
mnstr8401's Avatar
 
Status: Offline
Posts: 7
Join Date: Jun 2011
Location: Anza, California
Default Need Help Sailing - 07-15-2011, 12:36 PM

I am lost on what i am doing wrong. The boat keeps going and going.
Attached Files
File Type: a2w Sailing.a2w (1.10 MB, 49 views)


Irene
(A.K.A mnstr8401)
   
Reply With Quote
Old
legolizard
Senior Member
 
legolizard's Avatar
 
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default 07-15-2011, 12:52 PM

Ummm no it doesn't... What is supposed to happen?
Attached Images
File Type: jpg capture00.jpg (4.5 KB, 88 views)


"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
   
Reply With Quote
Sailing.
Old
mnstr8401
Junior Member
 
mnstr8401's Avatar
 
Status: Offline
Posts: 7
Join Date: Jun 2011
Location: Anza, California
Default Sailing. - 07-15-2011, 01:06 PM

The boat is suppose to stop in front of the island.

Create a sea world with a boat and an island. Position the island some distance
away from the boat, as shown in Figure 8-26. Write a method named sailTo,
which has an Object parameter. The method should cause the boat to move one
meter toward the object and then recursively call itself until the boat has reached
the object. Test the method by calling it and passing the island as the argument.


Irene
(A.K.A mnstr8401)

Last edited by mnstr8401; 07-15-2011 at 01:11 PM.
   
Reply With Quote
Old
legolizard
Senior Member
 
legolizard's Avatar
 
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default 07-15-2011, 01:17 PM

Okay well I think you should use the" is within threshold of object " and if the life boat is then stop the boat(do nothing) else redo the method.


"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
   
Reply With Quote
Thanks
Old
mnstr8401
Junior Member
 
mnstr8401's Avatar
 
Status: Offline
Posts: 7
Join Date: Jun 2011
Location: Anza, California
Default Thanks - 07-15-2011, 01:52 PM

Ill try that

thank you


Irene
(A.K.A mnstr8401)
   
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.