collision required for diablo like game?

Blitz3D Forums/Blitz3D Programming/collision required for diablo like game?

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.

you need to find the distance between the player and enemy with the distance formula:
square root((x2-x1)^2 + (y2-y1)^2)
if this comes out to be less than a certian distance, make the eniemy attack

then make some artificial intelligence for when the player is far enough away.