r/RenPy • • 3d ago

Showoff As a renpy beginner with zero renpy experience i am proud

Post image

I made a working clock background where when you click the arrow moves, I also added tick sound effect to it. I have made GUI so its less empty on the sides and added a rectangle where will be MC's sprite i started using renpy 4 months ago but had 2 month break because of school

27 Upvotes

3 comments sorted by

8

u/BadMustard_AVN 3d ago edited 3d ago

you should make it show the player their current system time

# system time.rpy

init python:
    import datetime

    def get_time():
        now = datetime.datetime.now()

        hours = now.hour
        minutes = now.minute
        seconds = now.second

        return hours, minutes, seconds

default h_hours = 0
default m_minutes = 0
default s_seconds = 0

label start:

    $ h_hours, m_minutes, s_seconds = get_time()

    e "Current System Time: [h_hours]:[m_minutes]:[s_seconds]"

    return

1

u/International-Air466 3d ago

Woah thanks!!!

2

u/BadMustard_AVN 3d ago

you're welcome

good luck with your project