Dangan Ronpa Style Clock? (Solved!)
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.
- Maychanx31
- Newbie
- Posts: 8
- Joined: Tue Mar 06, 2018 3:32 am
- Contact:
Dangan Ronpa Style Clock? (Solved!)
Hello there!
I'm new to this forum (and new to creating Visual Novels in general) and was curious if it was possible to have a time system similar to the one in the Dangan Ronpa game series.
There are three times throughout the day in the game, "Daytime, Freetime, and Nighttime."
I'm hoping to have the game I'm currently working on run on a similar clock, however I'm not sure how to go about coding it.
If anyone might know how to code this, your help would be greatly appreciated!
- May
I'm new to this forum (and new to creating Visual Novels in general) and was curious if it was possible to have a time system similar to the one in the Dangan Ronpa game series.
There are three times throughout the day in the game, "Daytime, Freetime, and Nighttime."
I'm hoping to have the game I'm currently working on run on a similar clock, however I'm not sure how to go about coding it.
If anyone might know how to code this, your help would be greatly appreciated!
- May
Last edited by Maychanx31 on Wed Mar 14, 2018 2:22 am, edited 1 time in total.
Re: Dangan Ronpa Style Clock?
In Danganronpa from what I remember, the time of day advances along with the story. That means you are the one who decides when it switchs from Daytime to nightime, and when a free time section happens. This might be as simple as creating some variables and jump to specific parts of the game (labels, in Ren'Py). You'll need a bit of programming knowledge, depending how complicated you want it to be.
I'd suggest you try learning the basics of Ren'Py and Python first, and study some of the examples in the Tutorial game and examples people have posted in this forum's Cookbook section.
I'd suggest you try learning the basics of Ren'Py and Python first, and study some of the examples in the Tutorial game and examples people have posted in this forum's Cookbook section.
- Maychanx31
- Newbie
- Posts: 8
- Joined: Tue Mar 06, 2018 3:32 am
- Contact:
Re: Dangan Ronpa Style Clock?
Thank you so much for your reply!ReDZiX wrote: ↑Tue Mar 06, 2018 9:54 am In Danganronpa from what I remember, the time of day advances along with the story. That means you are the one who decides when it switchs from Daytime to nightime, and when a free time section happens. This might be as simple as creating some variables and jump to specific parts of the game (labels, in Ren'Py). You'll need a bit of programming knowledge, depending how complicated you want it to be.
I'd suggest you try learning the basics of Ren'Py and Python first, and study some of the examples in the Tutorial game and examples people have posted in this forum's Cookbook section.
I've been playing around with labels a lot, so I'll see if I can replicate the system somehow using these!
Also, I'll definitely take a look through the cookbook. <3
- CalixtheGreat
- Regular
- Posts: 72
- Joined: Thu Jun 08, 2017 12:00 am
- Projects: Zephyr Breeze Investigations
- itch: calixthegreat
- Location: Philippines
- Contact:
Re: Dangan Ronpa Style Clock?
Here's a basic untested example:
Then for the screens:
NOTE: This is untested so it might contain some errors. Hahahah.
Code: Select all
label start:
show screen daytime
"Monokuma" "Upupupu... It's Daytime! Get up now and kill each other!!!!"
hide screen daytime
show screen nighttime
"Monokuma" "It's 10 o'clock! Nighttime"
hide screen nighttime
show screen freetime
"Naegi" "It's free time. What am I going to do?"
hide screen freetime
Code: Select all
screen daytime:
add text "Daytime"
screen nighttime:
add text "Nighttime"
screen freetime:
add text "Freetime"
- Maychanx31
- Newbie
- Posts: 8
- Joined: Tue Mar 06, 2018 3:32 am
- Contact:
Re: Dangan Ronpa Style Clock?
Thank you so much! This code is exactly what I was looking for.CalixtheGreat wrote: ↑Tue Mar 13, 2018 1:10 am Here's a basic untested example:Then for the screens:Code: Select all
label start: show screen daytime "Monokuma" "Upupupu... It's Daytime! Get up now and kill each other!!!!" hide screen daytime show screen nighttime "Monokuma" "It's 10 o'clock! Nighttime" hide screen nighttime show screen freetime "Naegi" "It's free time. What am I going to do?" hide screen freetime
NOTE: This is untested so it might contain some errors. Hahahah.Code: Select all
screen daytime: add text "Daytime" screen nighttime: add text "Nighttime" screen freetime: add text "Freetime"
The only issue I had was with the screens, however, all I had to do was remove the "add" from the beginning of "text." After that it worked beautifully!
Thank you again!
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Dangan Ronpa Style Clock?
I'd do something a little more convenient like this:
Much less typing for you
Code: Select all
default ronpa = "" # this is blank on purpose
screen dangan():
modal False
hbox:
xpos 30
ypos 30
text [ronpa]
label morning:
$ ronpa = "Morning"
monokuma "Bim bom bum bam. It's another beauuuutiful morning. Time to wake up and see who's dead!"
return
label night:
$ ronpa = "Night time"
monokuma "The time is now 10PM. Time to go to bed."
return
label freetime:
$ ronpa = "Free time"
monokuma "Its time to kill each other. Free time."
return
label start:
naegi "Why am I at school?"
monokuma "I kidnapped you! Now make with the killing."
show screen dangan
call morning
call night
call freetime
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- CalixtheGreat
- Regular
- Posts: 72
- Joined: Thu Jun 08, 2017 12:00 am
- Projects: Zephyr Breeze Investigations
- itch: calixthegreat
- Location: Philippines
- Contact:
Re: Dangan Ronpa Style Clock?
I'm glad to help you.Maychanx31 wrote: ↑Tue Mar 13, 2018 5:03 pmThank you so much! This code is exactly what I was looking for.CalixtheGreat wrote: ↑Tue Mar 13, 2018 1:10 am Here's a basic untested example:Then for the screens:Code: Select all
label start: show screen daytime "Monokuma" "Upupupu... It's Daytime! Get up now and kill each other!!!!" hide screen daytime show screen nighttime "Monokuma" "It's 10 o'clock! Nighttime" hide screen nighttime show screen freetime "Naegi" "It's free time. What am I going to do?" hide screen freetime
NOTE: This is untested so it might contain some errors. Hahahah.Code: Select all
screen daytime: add text "Daytime" screen nighttime: add text "Nighttime" screen freetime: add text "Freetime"
The only issue I had was with the screens, however, all I had to do was remove the "add" from the beginning of "text." After that it worked beautifully!
Thank you again!
Who is online
Users browsing this forum: Google [Bot]