In Ren'Py I move characters around based on variables like:
Unless the character is baked into the background-image itself during special events I use backgrounds + overlay-images to display them. Something like this works (pseudocode):
So I just talked to 'sexygirl' and I want her to start making cookies. At the end of a conversation I would set location_sexygirl to "kitchen_make_cookies". So far so good.
Now what I'd like to have is this:
-sexygirl automatically changes her location-variable after some time
-the player must be able to stop her during a certain state, lets just say for example - when she eats cookies we tell her she will get fat
Any idea on how to do this?
Code:
$ location_sexygirl = "kitchen"
Code:
## screen displays all clickable/interaction/overlay-things
screen kitchen():
tag buttons
fixed:
## button to leave location
imagebutton auto "gui/button%s.png" xpos 835-32 ypos 440-32 action Jump("go_bathroom") hover_sound "hover.opus"
if location_sexygirl == "kitchen":
image "images/ov kitchen sexygirl talk.png"
if location_sexygirl == "kitchen_make_cookies":
image "images/ov kitchen sexygirl make cookies.png"
if location_sexygirl == "kitchen_eat_cookies":
image "images/ov kitchen sexygirl eat cookies.png"
if location_sexygirl == "kitchen_clean":
image "images/ov kitchen sexygirl clean.png"
Now what I'd like to have is this:
-sexygirl automatically changes her location-variable after some time
-the player must be able to stop her during a certain state, lets just say for example - when she eats cookies we tell her she will get fat
Any idea on how to do this?