[SOLVED] Ingame 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
AikoYamamoto
Newbie
Posts: 9
Joined: Sun Nov 04, 2018 12:02 am
Contact:

[SOLVED] Ingame Timer

#1 Post by AikoYamamoto »

I was curious about making total time spent in game and couldn't find any info about it. I wanted this timer to be persistent as well, so it won't reset every time I close the game.If there's someone who knows and can help I would be pleased, thanks.
Last edited by AikoYamamoto on Sun Nov 11, 2018 12:21 pm, edited 1 time in total.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Ingame Timer

#2 Post by trooper6 »

You may want to experiment around with this: https://www.renpy.org/doc/html/other.ht ... me_runtime
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

AikoYamamoto
Newbie
Posts: 9
Joined: Sun Nov 04, 2018 12:02 am
Contact:

Re: Ingame Timer

#3 Post by AikoYamamoto »

trooper6 wrote: Sun Nov 11, 2018 12:07 pm You may want to experiment around with this: https://www.renpy.org/doc/html/other.ht ... me_runtime
Unfortunately, "(It does not count time spent in the main or game menus.)". I need those too :/

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: Ingame Timer

#4 Post by IrinaLazareva »


AikoYamamoto
Newbie
Posts: 9
Joined: Sun Nov 04, 2018 12:02 am
Contact:

Re: Ingame Timer

#5 Post by AikoYamamoto »

Thank you so much :D

Post Reply

Who is online

Users browsing this forum: Bing [Bot], snotwurm