Ni ImagesRectCollide() ?

BlitzMax Forums/BlitzMax Beginners Area/Ni ImagesRectCollide() ?

We meet again, Amon!

You could do it by using the actual mouse co-ordinates to check for collisions. There would always only be one tile (or no tile) such that the following holds:

(MouseX() - tileX >= 0 ) And
(MouseY() - tileY >= 0 ) And
(MouseX() - tileX < tileWidth) And 
(MouseY() - tileY < tileHeight)


Hope this helps,

Ryan