Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
screen money:
text ("%d" % money)
xpos 10.0
ypos 10.0
But that isn't working, the text always displays at the upper left corner, 0, 0. And frustratingly I now can't find the page in the documentation or wiki where I originally found this and I need to get this done to move on.
So what is the correct way to set the coordinates of this text?
1. There is an indentation problem in your code. Here there are two options.
2. An integer number means "pixels" a float number means "% in the screen". This is somewhat tricky, see the tutorial game to learn about it.
3. Don't need the % python code, the simple [variable] should do.
4. Don't forget the parenthesis in the screen definition (it's improved SL).
1. There is an indentation problem in your code. Here there are two options.
2. An integer number means "pixels" a float number means "% in the screen". This is somewhat tricky, see the tutorial game to learn about it.
3. Don't need the % python code, the simple [variable] should do.
4. Don't forget the parenthesis in the screen definition (it's improved SL).
screen money():
text "[money]" xpos 10 ypos 10
text "[money]":
xpos 10
ypos 10
Thanks for the quick reply. Good to know the float / int difference. And I never would have known the indentation was wrong because I wasn't getting any exceptions, strange.
I don't know, I'm not that familiar with renpy, but every other indentation error i've had so far has caused one. I don't really see how xpos and ypos outside of the correct syntax could be useful though.