I'm a beginner working on a game for my kids who like to "paint" on the screen. I'm going to create a "mask" - black and white version of the image, say a car, and then enable them to select a color and "paint" the area they want to... to make it easier I don't want the paint to work outside the masked area.
I have found the tips on drawing using lines vs just following the mouse pointer, but I haven't found any way to use a tile or a sprite as a mask so that the paint only stays in the enclosed area. See http://www.cartoonito.co.uk/tv-show/fir ... nting-game but imagine this as painting not a "paint bucket like fill".
Ideally, I'd like to just stop the paint stroke if it hit a black line in an imported image, so I don't have to "code" each image individually.
Any ideas or examples you've seen?
D.