Page 1 of 1

how to show Love meters

Posted: Sat Jan 20, 2018 5:06 pm
by squarecup
Hello,

I've been trying for a few days to display the three different meters I've created. I've read the "Screen Language" part in the Renpy documentation, but as english is not my native language, I don't understand what the part says :(

I just want to make something like this :
Bg.PNG
The best would be if I could have three meters but I won't push my luck ahah

If you could help me, it would be awesome !

Thank you

Re: how to show Love meters

Posted: Sat Jan 20, 2018 6:32 pm
by Ana
I haven't done this sort of thing in a while, but I think you can work with something along the lines of this (before label start):

Code: Select all

screen lovemeter:
    add "heartimage.png":
        xpos 0.0
        ypos 0.0
    text (heartpoints):
        xpos 0.780
        ypos 0.015
        color "#ffffff"
Just change heartimage.png to the name of your image for the heart.

To change the "heartpoints", you can do the following:

Code: Select all

$ heartpoints = 0
You can do the same thing with the other two stats as well, just duplicate them and play around with the x position and y positions.

Re: how to show Love meters

Posted: Sat Jan 20, 2018 6:52 pm
by squarecup
Ana wrote:
Sat Jan 20, 2018 6:32 pm
I haven't done this sort of thing in a while, but I think you can work with something along the lines of this (before label start):

Code: Select all

screen lovemeter:
    add "heartimage.png":
        xpos 0.0
        ypos 0.0
    text (heartpoints):
        xpos 0.780
        ypos 0.015
        color "#ffffff"
Just change heartimage.png to the name of your image for the heart.

To change the "heartpoints", you can do the following:

Code: Select all

$ heartpoints = 0
You can do the same thing with the other two stats as well, just duplicate them and play around with the x position and y positions.
Thanks for the reply ! :)

So I've tried your code. The game doesn't indicate any error but nothing appears on the screen :/

Re: how to show Love meters

Posted: Sat Jan 20, 2018 7:12 pm
by Empish
You have to show a screen in order for it to show up on the screen.

Code: Select all

show screen lovemeter

Re: how to show Love meters

Posted: Sat Jan 20, 2018 7:26 pm
by squarecup
Oh ok, my bad :')

I've tried it and an error appeared :
erreur1.PNG
Here's my code :
erreur1code.PNG

Re: how to show Love meters

Posted: Sat Jan 20, 2018 7:51 pm
by Empish
try

Code: Select all

text "[love]"
instead

Re: how to show Love meters

Posted: Sat Jan 20, 2018 8:04 pm
by squarecup
Oh my god it's working thank you so much !!!