Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

In my game, I want to provide the user with a drawing feature.

By free hand drawing, the user creates a polygon shape. Then, in my game implementation, I have to create a body for the found vertices and generate an image based on that polygon shape.

My problem is how to create an image that matches the user-provided vertices. I've heard that cocos2d has something called Image Masking. I don't understand how I could implement it in AndEngine. Could someone help?

share|improve this question
This is a 2d image I assume. What are you trying now? –  Jonathan O Dec 19 '12 at 2:06
Do you just draw your own character? Or is it more like drawing a map or something where the vertices have something to do with actual gameplay (other than defining what's visible)? If it's just visual, you could just put the user's drawing on a quad and move/transform that rather than creating actual vertices to bend. –  Mario Dec 19 '12 at 10:39
I have only one starting point to work is describe in the following link emanueleferonato.com/2011/08/05/…. So any other suggestion provide help to me. –  Siddharth Dec 19 '12 at 18:58
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.