How to fix this name bug?
Posted: Sat Aug 04, 2018 5:08 pm
So I'm trying to get the player to enter a character name and I have two minor visual bugs.
Here is a picture
The first bug is that the place where you type happens directly over the place where it says "Enter your name"
The second bug is that the cursor is not where the player is typing. The player is typing where the first line begins but if you look, the cursor is to the right and up of the word "name". Where the orange meets the white.
The code I have for this is pretty simple
Does anyone know how to fix these two bugs?
Here is a picture
The first bug is that the place where you type happens directly over the place where it says "Enter your name"
The second bug is that the cursor is not where the player is typing. The player is typing where the first line begins but if you look, the cursor is to the right and up of the word "name". Where the orange meets the white.
The code I have for this is pretty simple
Code: Select all
python:
name = renpy.input(" Enter your name", allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", length=10)
name = name.strip()
if not name:
name = "Anon"