Page 1 of 1

How do I change textboxes on the fly?

Posted: Fri Aug 28, 2020 6:05 pm
by Charmareian
Hello everyone, this is my first post on the forums.

I have my normal textbox "textbox.png"

I want to change to another character's perspective at a point in my game.

When I do that, I want to replace my blue textbox with a pink one.

I know you can do character specific ones. But I don't want the textbox to be pink only when that character talks.

When I do this perspective change, I want both the narrator and all other characters to use the new textbox until I call the original one back.

Is this possible?



EDIT: I figured it out. I just copy and pasted the window style code in screens.rpy and made an alternate version.

Re: How do I change textboxes on the fly?

Posted: Sun Aug 30, 2020 1:06 am
by namastaii
You could probably include a variable name in the file name so your textbox is "textbox_[variablenamehere].png" and you change $ variablenamehere = "new perspective" etc and it should change it that way? as another alternative