PDA

View Full Version : Get my bullet to work


Aaron M
04-10-2008, 02: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

DickBaldwin
04-10-2008, 02:24 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

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