Making a background timer

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
Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Making a background timer

#1 Post by Glazed Donuts » Sat Jun 11, 2011 12:00 am

Is it possible yet in 6.12 to make a timer running continuously in the background while you click around and do stuff?

So far in the earlier versions, I was able to make a timer, but it would immediately stop as soon as you click on something or the text box appears.

User avatar
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: Making a background timer

#2 Post by PyTom » Sat Jun 11, 2011 12:37 am

Yes. Put a timer in a screen, and show the screen. The timer will run as long as the screen is shown.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Re: Making a background timer

#3 Post by Glazed Donuts » Sun Jun 12, 2011 10:01 am

Can you put a screen on top of a screen and have them both shown/active at the same time? For example, 'layer 1 screen' is where the timer is and 'layer 2' screen is where the user interaction is.

User avatar
Anima
Veteran
Posts: 448
Joined: Wed Nov 18, 2009 11:17 am
Completed: Loren
Projects: PS2
Location: Germany
Contact:

Re: Making a background timer

#4 Post by Anima » Sun Jun 12, 2011 10:07 am

Yes, without problem. That is the default behaviour.
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase III

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Hojoo