11 Replies Latest reply on Sep 15, 2010 6:15 PM by kglad

    Collision mask for objects in a game?

    JamesCun

      Hello,

      I'm starting with actionscript 2 and I can't figure out how I set a collision mask for enemies and characters. I've got birds that flap their wings but I only want the player to collide with the body, not with the wings, as they take up too much space and it would be unfair.

       

      I tried mc.setMask and other things I found online, but somehow it didn't work, ie: did nothing. I think I don't get the way this works. I thought you'd need like an invisible rectangle that it checks collisions against instead of the actual animation.

       

      Can somebody give me a hint how this works?