Alice Community  

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

Reply
 
Thread Tools Display Modes
how?
Old
53508dawn
Guest
 
Status:
Posts: n/a
Default how? - 01-30-2011, 10:58 AM

Did you ever get this? I'm struggling with the cone thing as well. I got my car to move in all directions, but not when it hits a cone. Help would be appreciated.
   
Reply With Quote
how to:
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default how to: - 01-30-2011, 02:29 PM

1.create boolean value.

2.put a while method in each of your event that is controlling the car.

3 put the value in your while methods

4.put for all together method in your method when it ask you for a list, select create a new list and put all of your cones as an item.

5.put if else method in the for all method.

6.now, in the car's function, find car is within threshold of object. And put it in your if else method (say, a meter of? and the object doesn't matter for now.)

7.drag the item from ___ on the for all method, and drag it in the car within method.

8 now put the boolean method that you created earlier, and put it in the if section of the if else method, and select false.

If you follow these steps you'll be down in no time!


:D
   
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.