The simplified version looks like this:
Code: Select all
label portrait(character_name):
show "images/"+ "[character_name]" +"_image.png" at my_transform
As in Eileen, not "Eileen" because I need to later call on attributes like Eileen.hair_color
(I could solve this problem by making it a string, or by making the image an attribute of the object, but I'm trying to make the code more efficient and I want to know if there's a way to this.)
I've also tried making it a variable:
Code: Select all
label portrait(character_name):
show [character_name]_image at my_transform
So, is there a way to turn an object name to a string, or pass it into the name of a variable?
Are the square brackets even used for this ever or did I just make it up?