How do you make the sprite of a character change depending on an option?

kaitoes

Villager
Member
Joined
Jul 26, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMMV
The basis is that I'm trying to make the main character sprite change depending on the gender. How should I begin with this... all I can think of is duplicating the entire game
 

HexMozart88

The Master of Random Garbage
Veteran
Joined
May 15, 2016
Messages
2,051
Reaction score
3,723
First Language
English
Primarily Uses
RMVXA
all I can think of is duplicating the entire game
Uh... that's a little extreme, LOL.

After you show the options, there's a "change actor graphic" command. Click on that, and change it depending on which option the player chooses.
 

kaitoes

Villager
Member
Joined
Jul 26, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMMV
Uh... that's a little extreme, LOL.

After you show the options, there's a "change actor graphic" command. Click on that, and change it depending on which option the player chooses.
Whaaaaaaaaat. Thanks!!!
 

RePeat

Villager
Member
Joined
Jul 24, 2021
Messages
26
Reaction score
6
First Language
German
Primarily Uses
RMMV
Just in case, I'd like to add that the sprite change is the easy part. As far as I know textbox portraits can only be handpicked so if you have two versions of the same character and still want the correct portraits you need to go back to every dialogue of that character and put it in an "if" sentence. With a variable you can make something like:

* if player male=1
> line of dialogue with male character's picture

* else
> line of dialogue with female character's picture
 

kaitoes

Villager
Member
Joined
Jul 26, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMMV
Just in case, I'd like to add that the sprite change is the easy part. As far as I know textbox portraits can only be handpicked so if you have two versions of the same character and still want the correct portraits you need to go back to every dialogue of that character and put it in an "if" sentence. With a variable you can make something like:

* if player male=1
> line of dialogue with male character's picture

* else
> line of dialogue with female character's picture
Haha I figured something like that would happen. I'm just planning on not giving the protagonist any face box. :kaophew:
 

Latest Threads

Latest Posts

Latest Profile Posts

Well... it's been a while since I was last here :kaoswt: I don't want to say I'm officially 'back' yet, but I've recently started working with RM again, so I might become active here again :kaohi:
Mmmm I love Coca Cola candy! :kaoluv:
aaaand my power is out. I sometimes think that I'm cursed.
A surprising number of plugins have appeared for MZ since last year. I'm currently making a "shopping list" so that I'll know what I need to test when I switch over to MZ later this year. Much of it is stuff updated from MV plugins, but there are also a good number of new things. It'll be fun to test it all out.

Forum statistics

Threads
115,385
Messages
1,089,474
Members
150,112
Latest member
Wisepi69
Top