I’m trying to do something similar to Papers, Please: Drawing Faces and am reading Lua random image on how to script it. How would you set up the separate facial parts in Defold, then have the game mix them to create new faces, how would you code the placement of the facial parts for instance? All I can think of is importing images and having separate atlases for each of the facial parts, then write in a separate script to randomly grab an id from one of the tiles in the atlas, then smush them altogether somehow and have that be a sprite for a game object?
Is there a way to reference atlases as variables in Defold? Like local AtlasReference =
insert way to grab atlases.
Thanks in advance to anyone who replies, I appreciate it.