Hi all--very grateful for all the help I've received so far. I hope this one is an easy one.
My game makes heavy use of text input screens.Is there a way to format all input screens so that players can place the cursor anywhere in the input box? Basically, i want to make it easier for players to edit text. Right now, you can use the arrow keys to move the cursor around inside the input box, but when you have inputted, say, 200 characters, using the arrow keys can be annoying.
My intermediate ask is this: is there a way to double-click on a word in input to highlight it? A way to hold down the left mouse to highlight text? These are functions everyone is used to now when it comes to online input, so it would be great to duplicate it here.
Thanks much for all replies!
Using Mouse to Place the Cursor in an Input 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: Using Mouse to Place the Cursor in an Input Screen
Ren'Py uses pygame library to show displayables and to interact with human input. You can find some "pygame text editor" online and adapt (a part of) its code for Ren'Py, making your own editable text area.
Though I don't think that many players would like to input much text in a game. Maybe it would be easier to offer them lists of options to select.
Though I don't think that many players would like to input much text in a game. Maybe it would be easier to offer them lists of options to select.
Re: Using Mouse to Place the Cursor in an Input Screen
Thank you, Jeffster! I will investigate this later in the week.
I hear what you're saying. I am creating something very different from a traditional visual novel. It's a tool for creating player-character backgrounds for tabletop RPGs. As such, folks will be writing a little more.
I hear what you're saying. I am creating something very different from a traditional visual novel. It's a tool for creating player-character backgrounds for tabletop RPGs. As such, folks will be writing a little more.
Who is online
Users browsing this forum: enaielei