Hi Saithir, thank you for viewing my tutorial. Many of my friends who were having difficulties understanding how to use LayeredImages requested that I make it into a playable project, similar to the tutorial that comes packaged with the engine itself. Being able to see the code in action often helps visual learners who are not quite as programming-savvy understand new functions better than simply reading the official documentation alone. I believe it is best to try and make resources as accessible as possible so that a wider range of developers can benefit from it.
Regarding your question, I am a bit confused about what you are trying to achieve. It is possible to create a sideimage using LayeredImageProxy.
Code: Select all
#begin sideimage
image side august = LayeredImageProxy("august", Transform(crop=(0, 0, 497, 400), zoom=0.7, xoffset=-50))
#end sideimage
#begin sideimage_name
define au = Character("Augustina", image="august")
#end sideimage_name
I imagine adding it to a screen would be similar to how I programmed the dressup screen itself.
Code: Select all
screen dressup_example():
## Ensure this appears on top of other screens.
#...
add "doll" xalign 0.5
#...
textbutton _("Done") action Jump('dressup_game') xalign 0.99 yalign 1.0
Where
"doll" refers to the LayeredImage doll. The use of
SetVariable is to allow players to switch between the dress up options.