Code: Select all
default bday = ""
default bmonth = ""
label whatisday:
$ bday = int(renpy.input("Type the day - number - of your birthday.", length=2, allow = ["0","1","2","3","4","5","6","7","8","9"]) or 0)
if bday not in range(1, 32):
'Ups, Wrong number of day!'
jump whatisday
label whatismonth:
$ bmonth = int(renpy.input("Type the month - number - of your birthday.", length=2, allow = ["0","1","2","3","4","5","6","7","8","9"]) or 0)
if bmonth not in range(1, 13):
'Ups, Wrong month!'
jump whatismonth
Like this:
Code: Select all
if hour in [17, 18, 19]:
$hour = datetime.datetime.now().hour
show screen afternoon
Code: Select all
screen calendar:
text "{size=28}[month]/[day]{/size}"
The problem started when I decided to create a happy birthday screen
When it's the player's birthday, I want the game to not show the "Good morning", "good night", etc screens. I want it to show the "Happy Birthday" screen in their place during all the day.
So I tried:
Code: Select all
if month == "bmonth" and day == "bday":
hide screen night
hide screen evening
hide screen morning
hide screen afternoon
show screen happybirthday
I could simply choose to show both screens, putting the "Happy birthday" somewhere else. But the message stays inside of an specific frame of the background.
So I wanted to hide one to show the other. In the next day it would all go back to normal.
Also, where it's shown day/month (that is supposed to show the current day), it "freezes" on the day the person chose as their birthday.
For example, I tested it on my Android yesterday (January 30) to see how it would look like. So I set the birthday to be on January 30. When I entered the game today 1/31, instead of this screen:
Code: Select all
screen calendar:
text "{size=28}[month]/[day]{/size}"
Before adding this birthday thing, the screen was working properly.
Does anyone know where the mistake is?
Thanks.