Search found 3 matches

by diamondf
Fri Jul 06, 2012 8:58 pm
Forum: Support and Development
Topic: Attaching an image to a polygon shape.
Replies: 4
Views: 3758

Re: Attaching an image to a polygon shape.

Wow. That was an extremely impressive and helpful example you posted. Yep, that pretty much summarizes absolutely everything I needed. Thank you!
by diamondf
Fri Jul 06, 2012 7:41 pm
Forum: Support and Development
Topic: Attaching an image to a polygon shape.
Replies: 4
Views: 3758

Re: Attaching an image to a polygon shape.

Interesting, thank you. Sure enough, removing the mass piece did fix the first problem (instant crashing). As for splitting it into two objects, though, how would I achieve that? Would I have to create object.box.shape1 and object.box.shape2? And if so, how do those retain a proper angle and behavior?
by diamondf
Fri Jul 06, 2012 6:16 pm
Forum: Support and Development
Topic: Attaching an image to a polygon shape.
Replies: 4
Views: 3758

Attaching an image to a polygon shape.

So I've been using pixel-perfect collision using a bitmask with my game (I've only been checking the overlap of a previous box-collision, and I only check every 1/16 pixels (4x4)), which has worked perfectly for images that don't change angles. However, that is proving quite difficult with a bitmask...