Ni ImagesRectCollide() ?

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

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.

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