Collisions

BlitzMax Forums/BlitzMax Beginners Area/Collisions

JBR(Posted 2015) [#1]
Hi, basically testing if a point (bullet) hits a scaled/rotated image.

I don't understand collision layers - not sure if I need them?

COLLISION_LAYER_32 is used by the ImagesCollide and ImagesCollide2

I don't want to draw the point (bullet) just the image and then check the point against the image.

In the image, BLACK is the mask color. i.e. no hit on BLACK pixels.

Any help appreciated,
Jim


JBR(Posted 2015) [#2]
ImagesCollide2 seems to do the job, a bit slow - will have to do boundary checks first.