Collisions and DrawImageRect
BlitzMax Forums/BlitzMax Beginners Area/Collisions and DrawImageRect
| ||
Hello everyone, I spent the afternoon researching the best way to go about collisions, specifically so my mouse pointer can pinpoint items, highlighting, etc, etc. For testing purposes, when I use DrawImage and test for collisions using collideImage, it works fine and it's pixel perfect collision. The problem is when I draw an image using DrawImageRect to specify a height and width. I get non-working results, collision matches when the images aren't touching and vice versa. I also used CollideRect and ImageCollide with the same result. What am I doing wrong here? Or does collision only work when you use DrawImage? |