Alice Community Chapter 6
 User Name Remember Me? Password

 Thread Tools Display Modes
 Chapter 6
 poolebj Junior Member   Status: Offline Posts: 4 Join Date: Apr 2012 Chapter 6 - 04-18-2012, 09:30 PM I am so frustrated. I'm new to this and I'm working on Chapter 6, exercise 14 and I can't get a function or anything to work so when the navy jet passes the cylinders within a certain distance they turn green. Any help is much appreciated?
GameKid
Senior Member

Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
04-18-2012, 11:33 PM

Quote:
 Originally Posted by poolebj I am so frustrated. I'm new to this and I'm working on Chapter 6, exercise 14 and I can't get a function or anything to work so when the navy jet passes the cylinders within a certain distance they turn green. Any help is much appreciated?
"I can't get a function or anything to work"
I need specification so I know what to tell you. Could you post your world in progress?

Come on, you know you want to try it.

poolebj
Junior Member

Status: Offline
Posts: 4
Join Date: Apr 2012
04-19-2012, 12:46 AM

I attached my work in progress...
Attached Files
 Prepare for Take Off Poole.a2w (230.7 KB, 44 views)

 yammie1122 Junior Member   Status: Offline Posts: 11 Join Date: Mar 2012 04-19-2012, 04:27 PM How I was able to work this program, in your method "checkSafeZone1", add objects cylinder 1 and cylinder 2. Then do a if/else state for "if the jet is within a specific distance to cyclinder 1" and "if the jet is within a specific distance to cyclinder 2", then change color to green otherwise turn to red. This way you can call this method in your "my first method" and choose the cylinders. Hope this helps.
 poolebj Junior Member   Status: Offline Posts: 4 Join Date: Apr 2012 04-19-2012, 08:24 PM Thank you. I ended up figuring out that I needed to up the distance because it was measuring from the middle of the plane to the cylinder. Thanks for your help!

 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