Below is the code from entering the character's name to where the problem arises.
Code: Select all
define pla = Character("James", color="#ee1c0d", image="pla")
init python:
player = "James"
def player_name(newstring):
store.player = newstring
#Game Start
$ player = ""
call screen playerInput
if player != "":
$ pla = Character('[player]', color="#ee1c0d", image="pla")
screen playerInput:
text "{size=40}{i}Input player name.{/i}{/size}" xpos 1080 ypos 480 xalign 0.5 yalign 0.5
add Input (size=40, default="James", changed=player_name, length=12, xpos= 1060, ypos = 540)
key "K_RETURN" action Return()
imagebutton focus_mask True idle "buttons/Ok_idle.png" hover "buttons/Ok_hover.png" action Return() pos 965,0 xalign 0.5 yalign 0.5
Code: Select all
ally = str(pla)
Code: Select all
text "[ally]" xpos 549 ypos 507 xalign 0.0
In all other parts of the game, Korean letters are displayed without any problems..
Variable viewer in the part where the problem occurs, it is as shown in the picture below.
I think it's because there's no "u" in front of ally = ''... But I don't know what to do. Is there a solution?