Jump to content

Recommended Posts

Script

Version 2.1: http://www.crimson-castle.co.uk/rpgmakerscripts/PlaytimeInMenuV2-1.txt

 

This is a pretty simple one and I'm sure it's already done, but this one uses the same code that's used to generate the playtime visible on save files. This script will make the playtime visible on the menu, as well as refreshing the playtime every second. You can also set whether you want the playtime to be displayed above the party gold or below the party gold, as well as whether you want both playtime and party gold to have separate windows or share the same window. Just make sure you put this one below any scripts that alter the menu screen.

 

Screenshots

playtimeinmenu.pngplaytimeinmenu2.png

Edited by Shadowmaster9000

Share this post


Link to post
Share on other sites

Very simple, but handy.

 

Although a lot of people have done this, they haven't just added the simple basic implement of the feature, without adding too many other ones.

 

Thanks :P.

Share this post


Link to post
Share on other sites

This is awesome! I was just wondering though, is there a way to make it not always be above the gold window? I'd like to be able to move it up a little bit, as I have a script that adds another little window & I'd really like that to be between the time played & gold windows.

Share this post


Link to post
Share on other sites

This is awesome! I was just wondering though, is there a way to make it not always be above the gold window? I'd like to be able to move it up a little bit, as I have a script that adds another little window & I'd really like that to be between the time played & gold windows.

I see the last line of code has the     "@time_window.y = Graphics.height - @time_window.height - @gold_window.height" if you add to the end of that " - 10" it moves the window up slightly... and " + 10" would move the window down slightly...

 

it should look like    

@time_window.y = Graphics.height - @time_window.height - @gold_window.height - 10

 

play with this until u get the desired height :D

Edited by rbahamut

Share this post


Link to post
Share on other sites

Hi! I really like this simple addition to the main menu. Is there any way to adjust how long before it fades out? I'm using a non-default window transition script and the game time window is a bit slow disappearing from the screen. Let me know, thanks!!

 

Dani

Share this post


Link to post
Share on other sites

I'm only guessing, I think the reason the game time window is taking longer to disappear from the screen with your window transition script is because you put this script below your window transition script. Try putting it above and see what happens. (Or if this script is already above your window transition script, try putting it below.)

 

If that doesn't solve it then I'm afraid I can't help you because it's likely that your window transition script could be referencing specific windows in your main window.

Share this post


Link to post
Share on other sites

I have updated this script with a new version which can be found here: http://www.crimson-castle.co.uk/rpgmakerscripts/PlaytimeInMenuV1-5.txt

 

This new version sadly doesn't include any new features, but uses less lines of code to run more efficiently. I've also added another line of code that should hopefully make it that the playtime window will always have the same width as the gold window.

 

Also to Dani, I can't guarantee that this will help solve your problem but give it a try anyways and see if it works any better.

Share this post


Link to post
Share on other sites

Wow I never thought I'd ever update this script, but turns out I have with a couple of new neat features to boot:

  • You can now set whether you want playtime to be displayed above or below your party gold
  • You can now set whether you want both playtime and party gold to be displayed in separate windows or share the same window

Both these new features can be seen in action in the new screenshot below:
 
playtimeinmenu2.png

 

You can also download the newest version of the script below:
 
Version 2.0: http://www.crimson-castle.co.uk/rpgmakerscripts/PlaytimeInMenuV2-0.txt

Share this post


Link to post
Share on other sites

Can't believe I didn't notice this until now, but I designed the new gold window poorly because it'll now also show the time in other scenes that also use the gold window. I've made a separate window class for the combined time and gold window in the newest version below, which should solve this issue.

 

Version 2.1: http://www.crimson-castle.co.uk/rpgmakerscripts/PlaytimeInMenuV2-1.txt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×