Menu

#990 Inconsistent Collision Masks When Loading Image at Runtime

open
Ashley
Collisions (25)
5
2009-08-03
2009-07-31
Chris
No

When you load an image into a sprite at runtime, only the first instance of the sprite will receive a proper collision mask. Any other instances will receive a collision mask that doesn't conform at all to the outline of the sprite.

In the included CAP, there are two objects. The two objects are just different instances of the same sprite. When the program runs, it will ask for a PNG file to load -- for convenience, a good one for testing is included with the CAP. When you mouse over a sprite, it will turn blue. The one on the left has a perfect collision mask, but the one on the right is broken.

Discussion

  • Chris

    Chris - 2009-07-31
     
  • Chris

    Chris - 2009-07-31
    • labels: --> Collisions
     
  • Ashley

    Ashley - 2009-08-03
    • assigned_to: nobody --> ashleysbrain
     

Log in to post a comment.

MongoDB Logo MongoDB