Hello there,
I have been trying to design a stats screen for my game, I want to display the value of two variables per character on a stats screen:
So lets say we have a variable for friendship (1) and one for love (2).
Then I want to display those values on a screen which has an specific background image:
I'm guessing I need to use screen language to do so...
And I want to use a key to show the stats screen:
So players can use Ctrl+ S keys to show the stats screen... I think.
Well now the main question is how to display the variables, and how to display them on a specific area on the screen.
I want to use a grid to show the friendship values under the stars on the image, and the love values under the hearts on the image, the image is just a WIP by the way.
As far as I know I need to use a vbox with a grid value modifier to do something like that:
I need to learn how to display the variable's values and how to move them around on the stats screen to place them on the right spot on the background image.
Thanks for your help.
I have been trying to design a stats screen for my game, I want to display the value of two variables per character on a stats screen:
So lets say we have a variable for friendship (1) and one for love (2).
Python:
#Character's friendship and love variables.
default Tiff1 = 100
default Tiff2 = 5
default Smi1 = 10
default Smi2 = 5
default Joa1 = 5
default Joa2 = 5
default Dar1 = 5
default Dar2 = 10
I'm guessing I need to use screen language to do so...
Python:
screen stats:
add "MyStatsScreenBackground.jpg"
image button auto "MyCloseWindowButton_%s.png" xpos 1600 ypos 700 focus_mask True action Hide(stats)
Python:
init pyton:
config.keymap['stats'] = "ctrl_K_s"
Well now the main question is how to display the variables, and how to display them on a specific area on the screen.
I want to use a grid to show the friendship values under the stars on the image, and the love values under the hearts on the image, the image is just a WIP by the way.
As far as I know I need to use a vbox with a grid value modifier to do something like that:
Python:
screen stats:
vbox:
grid 3 3:
vbox:
#display variables values
I need to learn how to display the variable's values and how to move them around on the stats screen to place them on the right spot on the background image.
Thanks for your help.
Last edited: