Cohesion

Blitz3D Forums/Blitz3D Beginners Area/Cohesion

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If your working in 3d you could use
EntityDistance# ( src_entity,dest_entity)

If your working in 2d you could use mathamatics
and if then statments to check number of pixels between
characters.

And check the code archives under algorithms, ther is one that checks the distance between 2 rectangles and another
one with homing missles that could just as well be little
sheep folowing a sheep herder.Have a looksee.