How would I go about making a transparent stroke around a shape like in this picture?
A place to talk about anything else with other Pixelmator users.
I'd probably use layer masks for this. In particular, you'd need to mask the layer below your shape with the shape's stroke. You can learn more about working with layers masks here. I could probably whip up some more detailed instructions if those would be useful.