Technical question pixel perfect collision in 2d World.

Previous topic - Next topic

mentalthink

HI I have another technical doubt  :-[ :

Well whit sprite pixel collision, when detect the collision, if the sprite (it´s huge), have a bunch of colors it´s minus faster than it´s a solid color?¿, and another point, if the image it´s only a skecth of the original it´s more faster becuase have minus points?¿ .

I think, it´s better show a couple of images...


[attachment deleted by admin]

Kitty Hello

no. I only compare the alpha bits (transparency).

mentalthink

Thanks Gernnot again... then if I adjust at maximun the image to the boundix box, will be minus calculus, not?¿...


Kitty Hello

you could downscale the image to 1/8 size and compare with SPRITECOL(id1, x/8, y/8, id2, x2/8, y2/8)