Page 1 of 1

Marks - Collision detection

PostPosted: Oct 24, 2002 @ 3:03pm
by Hug

PostPosted: Oct 24, 2002 @ 5:57pm
by Johan

PostPosted: Oct 24, 2002 @ 7:07pm
by Hug
Can GAPDIDraw effectevely test a collision withs mask on a closed surface ?

Ex: A square building as 4 walls. Create a mask of the building with the inside of the building filled with the key color. If I put a sprite in the middle of the building and test for collision using getmaskid, will it work ?

I'm trying to do something similar and I'm getting strange results. At some positions when not touching the walls I get no collisions and at others positions still not touching the wall getmaskid returns a position and a maskid...

Thanks !

PostPosted: Oct 24, 2002 @ 7:10pm
by Johan
Yes it should work... :)

Masks

PostPosted: Oct 24, 2002 @ 8:09pm
by Hug

Masks

PostPosted: Oct 25, 2002 @ 12:35am
by Hug
Problems solved.. my mistake..