Hi all,
I’m making a 2D kids game, and in it I have a level where I want the player to apply face cream on the character’s face.
Also the game needs to recognize if/when the player applied it completely, in order to get points.
(It’s really like any girls game, or doctor games)
I’m not sure how to approach it, and I can’t find any proper example online.
What do you recommend?
I was thinking about making an invisible shape (with vertex) on top of the image of the face, and not sure if to instantiate “cream spot” prefabs, or to unveil a cream layer as the user touches the screen (using alpha). I’m really not sure about those 2 approaches.
What do you think? Any ideas or examples for more simple solutions?
“It’s really like any girls game”.
Yes, because clearly the only games that appeal to girls are those in which you apply face cream…
Hey, it wasn’t my choice, someone else is paying my salary and make the shots.
If it was my choice, I would choose to go a different path completely (and respect more my potential users), yet we can’t pretend those simple games are not successful. Companies as TabTale made a fortune for those simple games.
(and again, i’m not the boss)
It’s really hard to suggest anything in more detail than your existing thoughts without knowing more about the game. Either approach will work. I’d personally go for a texture-based approach (painting to an alpha layer or similar) since I think that’d give more flexibility in the presentation/polish stages.
For a simple approach you could have 4 texture maps.
- An image of the face with no cream.
- An image of the face with 100% cream.
- A ‘mask’ (alpha only or maybe even 1 bit) defining the area of the face the user needs to apply cream to.
- A drawable alpha-only texture which the player modifies by ‘painting’ cream. This is used to blend between the crean and no-cream visual textures, and can also be compared to the mask so you know when the player is done.
Depending on your graphical style and desired realism you might want to do something more advanced. For instance, you could make the drawable texture also keep direction or pressure and then incorporate that into a shader for your cream, etc.
1 Like