PDA

View Full Version : chapter 6 projects [car]


darkem0t10ns
03-09-2009, 06:13 PM
i have a problem with the car where if u hit a cone the word fail comes up. like i try to make a function saying

hitIt
if object is with (meters) of (objects)
return true
if else
return false.

my method is
if hit object= humvee objects=cones
word FAIL is shown
if else
return nothing.


how do i put more cones in the objects parts

like right now im just running over everything.

neil04
07-03-2009, 11:04 AM
i am trying to figure out this porject now as well. I have linked all the car movements to key presses, but i can not seem to get the car to respond to the failure unless i place the function in the cars actual movement.

cbb2296
07-05-2009, 02:20 PM
Try making something like if humvee is within 0.0001 meters of cone, show word fail