*solved* Putting character images in the window

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
Batensan
Regular
Posts: 74
Joined: Fri Jul 22, 2011 11:43 pm
Completed: Moon Observatory (Ciel, Anholly, Iris), Pizzaro Project Deep Dish
Tumblr: batensan
Deviantart: batensan
itch: batensan
Contact:

*solved* Putting character images in the window

#1 Post by Batensan »

I was able to get it to work before (I test launched the game and it looked great), but when I returned a few days later, when I test launched it again, it wouldn't work!

I'm pretty sure I didn't mess with the code. I don't know what to do anymore x_x
Here are some pictures of my problem:
Attachments
RAGE >:(
RAGE >:(
problem1.PNG
Last edited by Batensan on Fri Sep 25, 2015 1:15 am, edited 2 times in total.

babyfish
Veteran
Posts: 203
Joined: Mon Mar 07, 2011 3:57 pm
Projects: Maid of Midsummer (LifeSim)
Location: (' )< Swimming in your fishbowl, nomming on flakes.
Contact:

Re: Putting character images in the window when they speak..

#2 Post by babyfish »

Maybe try pulling back the indentation on lines 9, 10, and 11 so that there's only one 'tab' worth of indentation after line 8. Alternatively, you could put it a single line and see if it works then.
Image
(Work in progress)

(' )< -babyfish

User avatar
Batensan
Regular
Posts: 74
Joined: Fri Jul 22, 2011 11:43 pm
Completed: Moon Observatory (Ciel, Anholly, Iris), Pizzaro Project Deep Dish
Tumblr: batensan
Deviantart: batensan
itch: batensan
Contact:

Re: Putting character images in the window when they speak..

#3 Post by Batensan »

babyfish wrote:Maybe try pulling back the indentation on lines 9, 10, and 11 so that there's only one 'tab' worth of indentation after line 8. Alternatively, you could put it a single line and see if it works then.
It isn't working D:
It just keeps saying "Exception: Sayer 'normal' is not defined."

0ion9
Regular
Posts: 79
Joined: Thu Jun 16, 2011 9:17 am
Contact:

Re: Putting character images in the window when they speak..

#4 Post by 0ion9 »

If you are going to reference anything in the script, you'd better be sure it's defined beforehand.
Just because the 'normal' definition comes first doesn't mean it's executed first.

Things that must be executed first go in init blocks.

However, in this situation, that's not necessary (since you are only declaring a variable).
You should be using 'define', as in:

Code: Select all

define qq = Character('???',
                      show_two_window=True)

User avatar
Batensan
Regular
Posts: 74
Joined: Fri Jul 22, 2011 11:43 pm
Completed: Moon Observatory (Ciel, Anholly, Iris), Pizzaro Project Deep Dish
Tumblr: batensan
Deviantart: batensan
itch: batensan
Contact:

Re: Putting character images in the window when they speak..

#5 Post by Batensan »

Actually, I wanted to do the "side_image" thing like this:
http://www.renpy.org/wiki/File:Renpyfaq_sideimage.jpg
not, the separate box for the character name, but thanks for the help, anyway.

I fixed the problem, instead of putting a "$" I put "define" and it worked.
Developer of Moon Observatory.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot]