Dangan Ronpa Style Clock? (Solved!)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
Maychanx31
Newbie
Posts: 8
Joined: Tue Mar 06, 2018 3:32 am
Contact:

Dangan Ronpa Style Clock? (Solved!)

#1 Post by Maychanx31 »

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
Last edited by Maychanx31 on Wed Mar 14, 2018 2:22 am, edited 1 time in total.

ReDZiX
Regular
Posts: 32
Joined: Thu Jan 04, 2018 12:42 pm
Contact:

Re: Dangan Ronpa Style Clock?

#2 Post by ReDZiX »

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.

User avatar
Maychanx31
Newbie
Posts: 8
Joined: Tue Mar 06, 2018 3:32 am
Contact:

Re: Dangan Ronpa Style Clock?

#3 Post by Maychanx31 »

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.
Thank you so much for your reply!

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

User avatar
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?

#4 Post by CalixtheGreat »

Here's a basic untested example:

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
Then for the screens:

Code: Select all

screen daytime:
   add text "Daytime"

screen nighttime:
   add text "Nighttime"

screen freetime:
   add text "Freetime"
NOTE: This is untested so it might contain some errors. Hahahah.
Image
FB PAGE:
CALIX THE GREAT

User avatar
Maychanx31
Newbie
Posts: 8
Joined: Tue Mar 06, 2018 3:32 am
Contact:

Re: Dangan Ronpa Style Clock?

#5 Post by Maychanx31 »

CalixtheGreat wrote: Tue Mar 13, 2018 1:10 am Here's a basic untested example:

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
Then for the screens:

Code: Select all

screen daytime:
   add text "Daytime"

screen nighttime:
   add text "Nighttime"

screen freetime:
   add text "Freetime"
NOTE: This is untested so it might contain some errors. Hahahah.
Thank you so much! This code is exactly what I was looking for.

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! :heart:

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Dangan Ronpa Style Clock?

#6 Post by Imperf3kt »

I'd do something a little more convenient like this:

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

Much less typing for you
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

User avatar
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?

#7 Post by CalixtheGreat »

Maychanx31 wrote: Tue Mar 13, 2018 5:03 pm
CalixtheGreat wrote: Tue Mar 13, 2018 1:10 am Here's a basic untested example:

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
Then for the screens:

Code: Select all

screen daytime:
   add text "Daytime"

screen nighttime:
   add text "Nighttime"

screen freetime:
   add text "Freetime"
NOTE: This is untested so it might contain some errors. Hahahah.
Thank you so much! This code is exactly what I was looking for.

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! :heart:
I'm glad to help you. 😀
Image
FB PAGE:
CALIX THE GREAT

Post Reply

Who is online

Users browsing this forum: Google [Bot]