Page 1 of 1

{Solved} Init properties for characters

Posted: Fri Sep 20, 2013 1:00 pm
by Verstehen
I'm pretty sure this should be working.
I've tried moving the position of the nvl text into a certain area for a scene and it won't budge.

Code: Select all

init:
    $ narrator = Character(None, kind=nvl, xpos=0.5, ypos=1, xanchor=1.0, yanchor=1.0)
So I tried just setting its color :

Code: Select all

init:
    $ narrator = Character(None, kind=nvl, color="#8f2121")
Narrator defined speech remained the default color.

Re: Init properties for characters aren't doing anything.

Posted: Fri Sep 20, 2013 1:14 pm
by KomiTsuku
Easy fix. ^_^

Instead of putting it in the init block, just use...

Code: Select all

define narrator = Character(None, kind=nvl, xpos=0.5, ypos=1, xanchor=1.0, yanchor=1.0)
Edit: Also, you want to use what_color instead of color to change the color of the text.

Edit2: If you are just doing it for that one scene, use this right before you want it to change. After it is done, you can use the same method to change it back to whatever you wanted.

Code: Select all

$ narrator = Character(None, kind=nvl, xpos=0.5, ypos=1, xanchor=1.0, yanchor=1.0)

Re: Init properties for characters aren't doing anything.

Posted: Fri Sep 20, 2013 1:49 pm
by Verstehen
Thanks man, it worked.