Hi,
I'm currently doing a visual novel on Ren'py as part of my studies as a game designer.
I would like to know how to place dialog boxes anywhere on the screen. (We've been struggling for a few days)
For example, for added dynamism, we would like the dialog boxes to appear directly on the character (mid screen), or basically ,anywhere else besides the classical bottom of the screen .
Moreover, is it possible to display a dialog box without defining a character? ( one that would still react to the player clicking)
Thanks in advance!
Placing Dialog Boxes anywhere on the screen
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.
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.
Re: Placing Dialog Boxes anywhere on the screen
Then you should look into gui.rpy, particularly at this line:Ragnaor wrote:Hi,
I'm currently doing a visual novel on Ren'py as part of my studies as a game designer.
I would like to know how to place dialog boxes anywhere on the screen. (We've been struggling for a few days)
For example, for added dynamism, we would like the dialog boxes to appear directly on the character (mid screen), or basically ,anywhere else besides the classical bottom of the screen.
Code: Select all
define gui.textbox_yalign = 1.0
You mean, like narrator lines?Moreover, is it possible to display a dialog box without defining a character? ( one that would still react to the player clicking)
That is simply done with something like this:
Code: Select all
"Hello, world."
Re: Placing Dialog Boxes anywhere on the screen
Or maybe you were thinking about something like this:renpic wrote:You mean, like narrator lines?
Code: Select all
show text "Hello World!" at truecenter
Re: Placing Dialog Boxes anywhere on the screen
Ok! Thanks a lot for your answers ! Back to work !
Re: Placing Dialog Boxes anywhere on the screen
BTW, there is no need to edit gui.rpy, you should be able to do it just from script.rpy. Add at the beginning:renpic wrote: Then you should look into gui.rpy, [...]
You can change it [...]
Code: Select all
init:
python:
gui.textbox_yalign = 0.0
Who is online
Users browsing this forum: Ahrefs [Bot]