Thank you so so so much!! I've mostly got it working, the only issue I'm having is defining the "default" state for the male vs female sprite. Right now, if you choose that you want to play as a male sprite, it starts as the female sprite until I get into the male sprite options and then it won't go back to the fem sprite options (the fem sprite is working perfectly). I wanted to set it up in the script, like so. I did try the hotspot option like you had mentioned but I clearly didn't do something right.
Code: Select all
#image rowan = DynamicDisplayable(rowan_sprite) #uncomment to use python version
init:
default rowan_race = 1
default rowan_race_max = 8
default rowan_outfit = 1
default rowan_outfit_max = 13
default rowan_hair = 1
default rowan_hair_max = 11
default rowan_female = True
#####################################renpy langauge version:
image rowan = Composite(
(400, 400),
(0, 0), "Create_Character/Rowan/Bodies/rowan_[rowan_race].png",
(0, 0), "Create_character/Rowan/Outfits/rowan_Outfit[rowan_outfit].png",
(0, 0), "Create_character/Rowan/Hair/rowan_hair[rowan_hair].png"
)
image rowan happy = Composite(
(400, 400),
(0, 0), "Create_Character/Rowan/Bodies/rowan_[rowan_race].png",
(0, 0), "Create_character/Rowan/Mood/rowan_[rowan_race]_happy.png",
(0, 0), "Create_character/Rowan/Outfits/rowan_Outfit[rowan_outfit].png",
(0, 0), "Create_character/Rowan/Hair/rowan_hair[rowan_hair].png"
)
image rowan sad = Composite(
(400, 400),
(0, 0), "Create_Character/Rowan/Bodies/rowan_[rowan_race].png",
(0, 0), "Create_character/Rowan/Mood/rowan_[rowan_race]_sad.png",
(0, 0), "Create_character/Rowan/Outfits/rowan_Outfit[rowan_outfit].png",
(0, 0), "Create_character/Rowan/Hair/rowan_hair[rowan_hair].png"
)
image rowan angry = Composite(
(400, 400),
(0, 0), "Create_Character/Rowan/Bodies/rowan_[rowan_race].png",
(0, 0), "Create_character/Rowan/Mood/rowan_[rowan_race]_angry.png",
(0, 0), "Create_character/Rowan/Outfits/rowan_Outfit[rowan_outfit].png",
(0, 0), "Create_character/Rowan/Hair/rowan_hair[rowan_hair].png"
)
image rowan surprised = Composite(
(400, 400),
(0, 0), "Create_Character/Rowan/Bodies/rowan_[rowan_race].png",
(0, 0), "Create_character/Rowan/Mood/rowan_[rowan_race]_surprised.png",
(0, 0), "Create_character/Rowan/Outfits/rowan_Outfit[rowan_outfit].png",
(0, 0), "Create_character/Rowan/Hair/rowan_hair[rowan_hair].png"
)
#####################################python version:
init python:
def rowan_sprite(st, at):
return LiveComposite(
(0, 0),
(0, 0), "Create_Character/Rowan/Bodies/rowan_{}.png".format(rowan_race),
(0, 0), "Create_character/Rowan/Outfits/rowan_Outfit{}.png".format(rowan_outfit),
(0, 0), "Create_character/Rowan/Hair/rowan_hair{}.png".format(rowan_hair),
),.1
screen race_rowan():
modal True
imagemap:
ground "Dressup_Screen/background.png"
idle "Dressup_Screen/idle.png"
hover "Dressup_Screen/hover.png"
selected_idle "Dressup_Screen/selected.png"
selected_hover "Dressup_Screen/selected.png"
##Rowan Race##
if rowan_female:
hotspot(47,959,75,130) action If(rowan_race > 1, SetVariable("rowan_race", rowan_race - 1), SetVariable("rowan_race", 1))
hotspot(1068, 959, 70, 127) action If(rowan_race < 4, SetVariable("rowan_race", rowan_race + 1), SetVariable("rowan_race", 4))
else:
hotspot(47,959,75,130) action If(rowan_race > 5, SetVariable("rowan_race", rowan_race - 1), SetVariable("rowan_race", 5))
hotspot(1068, 959, 70, 127) action If(rowan_race < 8, SetVariable("rowan_race", rowan_race + 1), SetVariable("rowan_race", 8))
##Continue##
hotspot(137,1422,900,228) action Return()
add "rowan":
pos(0, 0)
screen hair_rowan():
modal True
imagemap:
ground "Dressup_Screen/background.png"
idle "Dressup_Screen/idle.png"
hover "Dressup_Screen/hover.png"
selected_idle "Dressup_Screen/selected.png"
selected_hover "Dressup_Screen/selected.png"
##Rowan Hair##
if rowan_female:
hotspot(47,959,75,130) action If(rowan_hair > 1, SetVariable("rowan_hair", rowan_hair - 1), SetVariable("rowan_hair", 1))
hotspot(1068, 959, 70, 127) action If(rowan_hair < 8, SetVariable("rowan_hair", rowan_hair + 1), SetVariable("rowan_hair", 8))
else:
hotspot(47,959,75,130) action If(rowan_hair > 9, SetVariable("rowan_hair", rowan_hair - 1), SetVariable("rowan_hair", 9))
hotspot(1068, 959, 70, 127) action If(rowan_hair < 11, SetVariable("rowan_hair", rowan_hair + 1), SetVariable("rowan_hair", 11))
##Continue##
hotspot(137,1422,900,228) action Return()
add "rowan":
pos(0, 0)
screen outfit_rowan():
modal True
imagemap:
ground "Dressup_Screen/background.png"
idle "Dressup_Screen/idle.png"
hover "Dressup_Screen/hover.png"
selected_idle "Dressup_Screen/selected.png"
selected_hover "Dressup_Screen/selected.png"
##Rowan Outfit##
if rowan_female:
hotspot(47,959,75,130) action If(rowan_outfit > 1, SetVariable("rowan_outfit", rowan_outfit - 1), SetVariable("rowan_outfit", 1))
hotspot(1068, 959, 70, 127) action If(rowan_outfit < 7, SetVariable("rowan_outfit", rowan_outfit + 1), SetVariable("rowan_outfit", 7))
else:
hotspot(47,959,75,130) action If(rowan_outfit > 8, SetVariable("rowan_outfit", rowan_outfit - 1), SetVariable("rowan_outfit", 8))
hotspot(1068, 959, 70, 127) action If(rowan_outfit < 13, SetVariable("rowan_outfit", rowan_outfit + 1), SetVariable("rowan_outfit", 13))
##Continue##
hotspot(137,1422,900,228) action Return()
add "rowan":
pos(0, 0)
Anyway, I'm not sure where/how to define the fem sprite vs male sprite. Right now, for the male option it originally shows rowan assembled with the "default" values and then once I get into the male variables, will no longer show the fem variables. Thanks so much for your help, and I apologize for all the questions, but your help is so appreciated!!!