Sign up ×
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…. So any other suggestion provide help to me. – Siddharth Dec 19 '12 at 18:58

1 Answer 1

Why don't you simply let the user draw directly onto an image? In that case, there wouldn't be any need for a conversion. You could then put that image onto a quad and render it like that in your game.

share|improve this answer
Well, thx for the unexplained downvote. – Dudeson Oct 13 '14 at 16:21

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.