[SOLVED] 3 differents textboxes and fixed name

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
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

[SOLVED] 3 differents textboxes and fixed name

#1 Post by Pierrou » Wed Dec 10, 2014 6:56 am

Hi again :oops:

I've some issues when i try to customize my textbox.

(Sorry, english is not my native...)

I need to use 3 differents textboxes :

1) Without any name
2) With name
3) With name + image side


EDIT : It works now... Don't know why i just reboot the game so many times...

Code: Select all

# Déclarez les personnages utilisés dans le jeu.
define shiki1 = Character('Shiki', window_yminimum = 236)

define shiki2 = Character('Shiki', window_yminimum = 236, window_left_padding=160, window_background="data/box3.png", image="shiki2")

image side shiki2 sad = "cg/n_shiki1.jpg"
image side shiki2 happy = "cg/n_shiki2.jpg"

## narrateur
define n = Character(None, window_background="data/box1.png")


# Le jeu commence ici
label start:

    n "Vous venez de créer un nouveau jeu Ren'Py."

    shiki2 sad "Test de l'image Shiki Un"
    shiki1 "Test Shiki"
    shiki2 happy "Test de l'image Shiki Deux"
    
    shiki1 "Test Shiki"
    
    n "Vous venez de créer un nouveau jeu Ren'Py."

    return
But know it's another problem... I searched on the forum (Cookbook and here) but i didn't find this...

When i had a padding left on my textbox the name of the character has padding too...

I read : http://lemmasoft.renai.us/forums/viewto ... =51&t=9233

But it's not a different textbox it's the same... I just need to move it and center it :/

Any idea ?


Thank you in advance :D
Last edited by Pierrou on Fri Dec 19, 2014 6:51 pm, edited 2 times in total.

User avatar
same2cool
Newbie
Posts: 3
Joined: Fri Dec 19, 2014 2:06 pm
Contact:

Re: 3 differents textboxes and fixed name

#2 Post by same2cool » Fri Dec 19, 2014 2:13 pm

i'll suggest "with name + image" better option

User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

Re: 3 differents textboxes and fixed name

#3 Post by Pierrou » Fri Dec 19, 2014 6:50 pm

We done this ;) thank you to answer me !
Sorry for my english, it's not my native language. :s

Post Reply

Who is online

Users browsing this forum: Google [Bot], nyeowmi