Flagging side sprite changes

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Godline
Veteran
Posts: 499
Joined: Fri Jun 27, 2014 12:26 am
Completed: numerous
Tumblr: godlinegames
Deviantart: godline-games
itch: godline
Contact:

Flagging side sprite changes

#1 Post by Godline »

The problem is I have three MC costume changes all at different points of the game. I want the side sprite shown at all times but if they're showing the side sprite, it doesn't change except when the character is speaking. Therefore I can't change it when the costumes change in script.

I have them tagged like this:
define m = Character('Oola', image="mer")
init python:
config.side_image_tag = "m"

image side mer = im.FactorScale("images/m/blank.png", 0.42)
image side mer interest = im.FactorScale("images/m/surprisedlips.png", 0.42)

define o2 = Character('Oola', image="o2")

init python:
config.side_image_tag = "o"


image side o = im.FactorScale("images/o/blank.png", 0.42)



ETC, so if I want to start the game with m and then switch to o2 when she changes clothes how do I do that?

I've looked through all the old topics for this and can't find ANYTHING. Its driving me crazy.

The closest I found was this one: viewtopic.php?t=50953

There they do " $ set_pov(eileen)"

But I couldn't get that code working for me.

Any help?

User avatar
Godline
Veteran
Posts: 499
Joined: Fri Jun 27, 2014 12:26 am
Completed: numerous
Tumblr: godlinegames
Deviantart: godline-games
itch: godline
Contact:

Re: Flagging side sprite changes

#2 Post by Godline »

Okay. I've been playing with it and I STILL can't get it working.


I tried this:

Code: Select all


define m = Character('Oola', image="mer", mermaid=True)
#init python:
 #    config.side_image_tag = "m"

image side mer = im.FactorScale("images/m/blank.png", 0.42)
image side mer interest = im.FactorScale("images/m/surprisedlips.png", 0.42)
image side mer cry = im.FactorScale("images/m/crying.png", 0.42)
image side mer frown = im.FactorScale("images/m/worried.png", 0.42)          
image side mer angry = im.FactorScale("images/m/angry.png", 0.42)
image side mer smile = im.FactorScale("images/m/smile.png", 0.42)
image side mer surprise = im.FactorScale("images/m/surprised.png", 0.42)
image side mer talk = im.FactorScale("images/m/teeth.png", 0.42)

define o = Character('Oola', image="o", mermaid=False)

define o2 = Character('Oola', image="o2", mermaid=False)

#init python:
 #    config.side_image_tag = "o"


image side o = im.FactorScale("images/o/blank.png", 0.42)
image side o interest = im.FactorScale("images/o/surprisedwithlips.png", 0.42)
image side o cry = im.FactorScale("images/o/crying.png", 0.42)
image side o frown = im.FactorScale("images/o/sad.png", 0.42)       
image side o angry = im.FactorScale("images/o/angry.png", 0.42)
image side o smile = im.FactorScale("images/o/smile.png", 0.42)
image side o surprise = im.FactorScale("images/o/surprised.png", 0.42)
With the mermaid = True and mermaid = False but nada.

Someone has to have worked this out before. I want the mer image (mermaid image) to show and not the human image.

Post Reply

Who is online

Users browsing this forum: GoldenGob, SelLi