Hi
In my game i'm trying to have a screen on the top left side that show the day, time of day etc.
I have a separate file for variables and the code looks like this
init:
$ week =1
$ daycounter =0
$ dayname = ("Mon", "Tue", "Wen", "Thu", "Fri", "Sat", "Sun")
$ daydisplay = dayname [(daycounter%7)]
$ timeofdaycounter =0
$ timeofdayname = ("Morning", "Afternoon", "Evening")
$ timeofdaydisplay = timeofdayname [(timeofdaycounter%3)]
the screen code looks like this
screen days():
text "Week [week], [daydisplay], [timeofdaydisplay] " pos (.0, .0) size 20
and at he end of the day, when the player goes to sleep the code looks like this
label sleep:
$ day += 1
$ timeofdaycounter = 0
"You go to bed"
jump morning
But the days don't seem to be changing.
What am I doing wrong?
Can you guys help me.
Thank you
Day display screen not changing
Forum rules
Do not post questions here!
This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Do not post questions here!
This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Re: Day display screen not changing
sorry
wrong part of the forum
wrong part of the forum
- noeinan
- Eileen-Class Veteran
- Posts: 1153
- Joined: Sun Apr 04, 2010 10:10 pm
- Projects: Ren'Py QuickStart, Crimson Rue
- Organization: Statistically Unlikely Games
- Deviantart: noeinan
- Github: noeinan
- Location: Washington State, USA
- Contact:
Re: Day display screen not changing
Hey, I'm not 100% sure on how to answer your question, but here in the Cookbook section xela provided some free code that makes a calendar, similar to what you are looking for. Here is the link, I hope you find it helpful: viewtopic.php?f=8&t=25098#p309061
Who is online
Users browsing this forum: No registered users