Formatting for Layered Sprites

Questions, skill improvement, and respectful critique involving art assets.
Post Reply
Message
Author
User avatar
wordlesswriter
Regular
Posts: 62
Joined: Thu Jul 12, 2012 12:31 am
Projects: ~La Dame de la Mer~
Contact:

Formatting for Layered Sprites

#1 Post by wordlesswriter »

I'm planning on using LiveComposite for my character sprites, but I'm not really entirely clear on how it works.
In the Cookbook, it says:

Code: Select all

image eileen = ConditionSwitch(
            "e_face == 'happy", LiveComposite(
                #If she's happy, call the LiveComposite
                (375, 480),
                (0, 0), "e.png",
                #This is the size of the sprite in widthxheight of pixels
                #I'm telling it not to move e.png but use the base dimensions and
                #the path to e.png. If I had it in a folder, it would be
                #"/foldername/imagename.format"
                #This is probably the "base" image or body.
                (94, 66), "e_happy.png",
                #This is 94 pixels to the right and 66 pixels down, if I remember correctly
                #This is the alternate face layer, which is put on top of the stack.
                #So the order goes bottom to top when you're listing images.
                ),
            "e_face == 'sad", LiveComposite(
                (375, 480),
                (0, 0), "e.png",
                (94, 66), "e_sad.png",
                #Don't forget your commas at the end here
                ),
            "e_face == None", "e.png")
            #If it's not set to anything, the neutral base "e.png" displays
In this case, we have e.png as the "default" face. Then there are the various faces "under" that.
1) Are the sprites underneath (e_sad.png, e_happy.png") just the faces, or the full bodied sprites?

2) Can you use this method to layer sprites with different poses, or do they show from underneath the default sprite?

3) If I have a character with several poses for Alice- for example, pose 1 is a front facing view of the character, but pose 2 is a profile view- would it be simpler to format the sprites into two separate LiveComposites, one labeled as "A_profile" (pose 1), and the other as "A_front" (pose 2)?
Image

Post Reply

Who is online

Users browsing this forum: No registered users