Mirroring Collision Shapes in Sprite Candy?

Blitz3D Forums/Blitz3D Programming/Mirroring Collision Shapes in Sprite Candy?

mkg(Posted 2008) [#1]
I have a problem with my little 2d game. I want bad guys coming from left or right of screen (think Duck Hunt). So I design figures facing left for moving right to left. Then I design my collision shapes. But when I mirror the images the collision shape is not mirrored. I had expected they would be - as scaling is no problem.

Am I missing something? or is the only way to design two lots of collision shapes?


ShadowTurtle(Posted 2008) [#2]
I dont know the source code of this library.. but..

you must invert the collision coords/normals as you mirror the shape, i think.

A good issue is the use of 2 images instead of one: 1x normal and 1x as mirror. The last one should be prerendered before you use Sprite Candy. This means a little bit rewrite into the code, i think