Just a hitbox question for grazer

At what opacity does the polygon hitbox ignore the sprite?

5 Likes

I think it’s 0. If it’s alpha 0, it’s basically an eraser. but I’m not sure.

2 Likes

The value is fairly arbitrary, I just chose one that seemed to handle antialiased edges fairly well.

The magic number is:

0x80 (or 128 in decimal)

3 Likes