How do I create characters?

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
salceous
Newbie
Posts: 19
Joined: Sun Apr 09, 2017 12:12 pm
itch: shuttt
Contact:

How do I create characters?

#1 Post by salceous »

Am I able to use Paint Tool Sai to create my characters? If I can't (I need a transparent background), then which program do I use?

What size are my images supposed to be? How do I make it so that when they appear on the screen, they're not floating in the air?

Also, I want to make it so that I can change their facial expressions. Like I can have a base with no face and I can specify which expression I want them to have (see attached image). If I'm able to create these images, how would I code them into Ren'py?

Sorry for the questions but I'm still new :)
Attachments
Capture.JPG
Capture.JPG (31.76 KiB) Viewed 1766 times

User avatar
Evy
Regular
Posts: 128
Joined: Thu Feb 23, 2017 7:46 pm
Projects: Meet Me At Sea, All That Glitters
Organization: Paper Parrot
Tumblr: clysmian
itch: clysmian
Location: Gatineau
Contact:

Re: How do I create characters?

#2 Post by Evy »

If you have Photoshop or another image editing program that can open .psd files, you can save your .sai images as .psd and open them in the other program; it will conserve the transparency of the background so you can then convert your image as a .png or whatever other file format you want.

I know there are some versions of SAI that actually have a transparency function, but you'll probably need to dig a little for more information. I actually don't know if mine supports it, so I just use the method above.

User avatar
Aviala
Miko-Class Veteran
Posts: 533
Joined: Tue Sep 03, 2013 8:40 am
Completed: Your Royal Gayness, Love Bug, Lovingly Evil
Organization: Lizard Hazard Games
Tumblr: lizardhazardgames
itch: aviala
Location: Finland
Contact:

Re: How do I create characters?

#3 Post by Aviala »

My SAI doesn't support transparency either, so I just export them through Photoshop like Evy said.

As for the sprites in the engine, you have two options. Either just export the whole body a bunch of times, each with a different experssion. Then you can just define them as spritename normal, spritename happy, etc. That's definitely the simplest way to do it.

If you wanna be fancy and save some filespace, you can use dynamic displayables. They basically work so that you have the base sprite and then the engine adds the face on top, like you would put clothes on a paperdoll. But if those are all the expressions you will use and you won't have a huge cast of characters, it may be easier for you to forget about dynamic displayables for now and focus on the basics.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How do I create characters?

#4 Post by Imperf3kt »

You can always export a blank faced image from Sai, open it in Gimp or Photoshop or program of yoiur choice, then export another image from Sai, this time with a face and overlay it on the other image
L.

In Gimp, you have two options:
Mask the image and save the differences as separate png frames with an alpha layer.
skill required: reasonably high. Quality obtained: professional

Use Gimp's "optimise for gif" python function and save the two layers as separate png frames with an alpha layer.
Skill required: none. Quality: 'meh' at best.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
morinoir
Regular
Posts: 170
Joined: Wed Sep 28, 2016 5:55 am
itch: blackpepper
Contact:

Re: How do I create characters?

#5 Post by morinoir »

umm.. I though the layers that contain character expression must have same canvas size as the faceless (named 'baseSprite' on the picture) layer?? I don't know much about programming this thing on renpy, but my client asked me to do it for his game.

And yes, even when you work on Sai, it's better to save your file as .psd/photoshop file so other program like gimp can open it.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How do I create characters?

#6 Post by Imperf3kt »

They don't have to have the same resolution, but its a little tidier (at the expense of more code needed to position everything)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
TheUsernameIsTaken
Newbie
Posts: 16
Joined: Sun Mar 12, 2017 3:59 am
Contact:

Re: How do I create characters?

#7 Post by TheUsernameIsTaken »

If it is the same SAI I am using:

-Create a new layer at the very bottom, this becomes your background layer
-Use bucket tool and plop a random color ur not using
-Click eye icon to turn the layer off visually
-Export as PNG as it is a sprite
-When exporting, you have two options, choose the one that says something along the lines of -Each pixel has its own opacity-

-If the above doesnt work or doesnt show, yeah its prolly not the same

salceous
Newbie
Posts: 19
Joined: Sun Apr 09, 2017 12:12 pm
itch: shuttt
Contact:

Re: How do I create characters?

#8 Post by salceous »

TheUsernameIsTaken wrote:If it is the same SAI I am using:

-Create a new layer at the very bottom, this becomes your background layer
-Use bucket tool and plop a random color ur not using
-Click eye icon to turn the layer off visually
-Export as PNG as it is a sprite
-When exporting, you have two options, choose the one that says something along the lines of -Each pixel has its own opacity-

-If the above doesnt work or doesnt show, yeah its prolly not the same
Thanks! Do you know how I can create a baseSprite (like in the picture) and then attach a face to it while I'm coding? Would that be harder than just making the expression already on the character while I'm on Sai and then just creating several completed sprites?

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: How do I create characters?

#9 Post by indoneko »

salceous wrote:Thanks! Do you know how I can create a baseSprite (like in the picture) and then attach a face to it while I'm coding? Would that be harder than just making the expression already on the character while I'm on Sai and then just creating several completed sprites?
I assume that you don't have much experience in coding, so I'll say yes... it's harder.

If you're new to this, I suggest that you use simple sprites first.
But if you really want to know about the more complex way to display your sprite, you can start searching renpy documentation about "Displayable", "im.composite", "live.composite" and ATL

Code: Select all

image girl clothed happy = im.Composite(
    (300, 600),
    (0, 0), "girl_body.png",
    (0, 0), "girl_clothes.png",
    (100, 100), "girl_happy.png"
    )

image eileen composite = LiveComposite(
    (300, 600),
    (0, 0), "body.png",
    (0, 0), "clothes.png",
    (50, 50), "expression.png")
My avatar is courtesy of Mellanthe

User avatar
Ghost of Crux
Miko-Class Veteran
Posts: 511
Joined: Mon Apr 27, 2015 12:17 am
Projects: To Weave A Thread
Organization: UNICORSITY
Tumblr: unicorsity
itch: namio
Location: Indonesia
Contact:

Re: How do I create characters?

#10 Post by Ghost of Crux »

I'm actually not aware which versions of SAI /don't/ support it, but check if when you export as PNG, a box pops up or not. If it does and you have the option between 24 bpp (RGB) and 32 bpp (ARGB), choose the latter.

Note that if you're using certain layer modes like Multiply/Screen/etc, it won't give you a transparent background. The workaround to this is to put your entire drawing/layers into a folder, put the different-mode-layer above the folder, and use clipping group.

Image
Image Image

misspells everything as unicorn. Call me Namio. They/them. | Honest Critique

Become a patron on my Patreon!

Post Reply

Who is online

Users browsing this forum: No registered users