Hey all game makers.. hoping for some tips:)
So the idea is to make a christmas calendar, where i each day come up with some new storie or something.. one thing I'm wondering about is that i want to have it so you only play one chapter every day... like 1 desember, 2 desember and so on.
Any tips on how to make that work?
christmas calendar Tips
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.
- PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: christmas calendar Tips
You can generally use the datetime to get the current date, and act on it.
Code: Select all
init python:
import datetime
python:
today = datetime.date.today()
if today < datetime.date(2016, 12, 25):
"It's before christmas."
else:
"Merry christmas."
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: christmas calendar Tips
OK thx:) ill get working and try it out:D
Re: christmas calendar Tips
Thank you for this thread.
I used it for adding the current date to my build name.
(in options.rpy)
I used it for adding the current date to my build name.
Code: Select all
## A short name for the game used for executables and directories in the built
## distribution. This must be ASCII-only, and must not contain spaces, colons,
## or semicolons.
#define build.name = "KuKuRisk"
init python:
import datetime
define build.name = datetime.datetime.today().strftime('%Y-%m-%d')+"-KuKuRisk"
Who is online
Users browsing this forum: Google [Bot], Ocelot