Counter on the game
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.
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.
Counter on the game
Hi! I'm new here and I'm doing a game on Ren'py. The action will last 5 days (on the game) and I need to know how to put a counter on the screen and how to pass the day when you do some actions. Can you help me please?
- yuren
- Newbie
- Posts: 14
- Joined: Sat Feb 20, 2016 2:41 am
- Projects: chomp2
- Github: yosephharyanto
- Skype: yosephharyanto
- Location: Indonesia
- Contact:
Re: Counter on the game
You'll need to maintain variable within your visual novel. Take look at http://renpy.org/wiki/renpy/doc/tutoria ... er_Choices
The basic idea is "I want the app to remember the counter of A", then you declare something like
saying that initially "I have a counter named A with the initial value to zero"
then everytime in the middle of the conversation (or choices) you want to increment counter,simply
Hope this helps
The basic idea is "I want the app to remember the counter of A", then you declare something like
Code: Select all
$ A = 0 then everytime in the middle of the conversation (or choices) you want to increment counter,simply
Code: Select all
$ A+=1 Who is online
Users browsing this forum: Bing [Bot], Google [Bot]