ok, so my player has 4 limbs, and if the player's limb colides with one of the 100 trees that I have placed, It needs to stop, not go through the trees!!!!!
here is my code: (using "if intersect object" command for collisions)
`make a bunch of trees
for w= 3 to 50
instance object w,2
position object w, rnd(1000), 0, rnd(1000)
`Front Intersection Check
IF INTERSECT OBJECT (w,LIMB POSITION X(1,1),LIMB POSITION Y(1,1),LIMB POSITION Z(1,1),X#,Y#,Z#)
`If intersection infront, move the user backwards
MOVE OBJECT 1, -1
ENDIF
`Back Intersection Check
IF INTERSECT OBJECT (w,LIMB POSITION X(1,2),LIMB POSITION Y(1,2),LIMB POSITION Z(1,2),X#,Y#,Z#)
`If intersection behind, move user forwards
MOVE OBJECT 1,1
ENDIF
`Right Intersection Check
IF INTERSECT OBJECT (w,LIMB POSITION X(1,3),LIMB POSITION Y(1,3),LIMB POSITION Z(1,3),X#,Y#,Z#)
`If intersection to the right, move the user left
MOVE OBJECT LEFT 1,1
ENDIF
`Left Intersection Check
IF INTERSECT OBJECT (w,LIMB POSITION X(1,4),LIMB POSITION Y(1,4),LIMB POSITION Z(1,4),X#,Y#,Z#)
`If intersection to the left, move user right
MOVE OBJECT RIGHT 1,1
ENDIF
next w
plz!!!!! I really need this!!!!!