Alice Community  

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

Reply
 
Thread Tools Display Modes
Get my bullet to work
Old
Aaron M
Guest
 
Status:
Posts: n/a
Default Get my bullet to work - 04-10-2008, 03:17 PM

I want to get it so that when i shoot my cone out 500 meters by pressing enter, the building i'm shooting at is removed. i have it set as follows:

when building is within one meter of cone, do building set isShowing to false.

the building doesnt do anything
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 04-10-2008, 03:24 PM

Quote:
Originally Posted by Aaron M View Post
I want to get it so that when i shoot my cone out 500 meters by pressing enter, the building i'm shooting at is removed. i have it set as follows:

when building is within one meter of cone, do building set isShowing to false.

the building doesnt do anything
The distance between the building and the cone is probably being measured from the center of the building to the center of the cone instead of from the exterior wall of the building to the tip of the cone. You probably need to figure out what those distances are and adjust the test accordingly.

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm
   
Reply With Quote
Reply

Thread Tools
Display Modes

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