Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Real time clock displayed on screen

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old July 20th, 2012 (03:57 AM).
I-Like-Shiny-Pichu's Avatar
I-Like-Shiny-Pichu I-Like-Shiny-Pichu is offline
 
Join Date: Mar 2010
Location: Somewhere that might be near you, but most likely isn't.
Age: 19
Gender: Female
Nature: Lonely
Posts: 371
Hi, I would like to display the current time (in real time) on the screen. I am sure this is possible, but I have tried a few things and can't figure out how. If anyone happens to know how I can achieve this I would be very glad for your help.

Thanks in advance,
Shiny
__________________





Yandere and proud!

HCF

Co-Admin of HCF & TCC
Reply With Quote
  #2    
Old July 20th, 2012 (04:29 AM).
Catman's Avatar
Catman Catman is offline
Testosterone Incarnate
 
Join Date: Jul 2012
Location: Cyber Space
Age: 20
Gender: Male
Nature: Hasty
Posts: 66
Is there a function that checks the system time?

If not you could always build a clock with variables
__________________
Be excellent to each other...
...and party on, dudes!
Reply With Quote
  #3    
Old July 21st, 2012 (04:30 AM).
I-Like-Shiny-Pichu's Avatar
I-Like-Shiny-Pichu I-Like-Shiny-Pichu is offline
 
Join Date: Mar 2010
Location: Somewhere that might be near you, but most likely isn't.
Age: 19
Gender: Female
Nature: Lonely
Posts: 371
There is such a function yes, but when I use it, it only displays the time at which the script was initialized. I thought about variables to be honest, not sure how to script it that the hour minute and AM/PM is set to a variable (every second, so its real time)
__________________





Yandere and proud!

HCF

Co-Admin of HCF & TCC
Reply With Quote
  #4    
Old July 21st, 2012 (04:43 AM).
Nickalooose Nickalooose is offline
--------------------
 
Join Date: Mar 2008
Gender: Female
Posts: 1,134
You'll probably want ToDo a refresh every 20 frames I think it is... To update the seconds minutes and hours at the right time... You may get a delay but change the frames used that's all I can figure... I've tried removing real time and adding fake time, more convenient I think... So I can't really elaberate more... But that's what I figure
Reply With Quote
  #5    
Old July 21st, 2012 (06:52 AM).
Catman's Avatar
Catman Catman is offline
Testosterone Incarnate
 
Join Date: Jul 2012
Location: Cyber Space
Age: 20
Gender: Male
Nature: Hasty
Posts: 66
Quote originally posted by Nickalooose:
refresh every 20 frames
I think it depends on the FPS you are running it at, Refresh it every 30 frames for 30 FPS, that way it'll go up by a second each time and won't be out of sync too much
__________________
Be excellent to each other...
...and party on, dudes!
Reply With Quote
  #6    
Old July 21st, 2012 (12:01 PM).
Nickalooose Nickalooose is offline
--------------------
 
Join Date: Mar 2008
Gender: Female
Posts: 1,134
Quote originally posted by I'mCatman:
I think it depends on the FPS you are running it at, Refresh it every 30 frames for 30 FPS, that way it'll go up by a second each time and won't be out of sync too much
That's what I meant... I'm using my phone and it doesn't like outrun things like FPS, HIV, OMG... Etc... It changes them to something a little less important! But hopefully they got the Jody

Edit...
Outrun = putting
Jody = jist

See what I mean!
Reply With Quote
  #7    
Old July 22nd, 2012 (04:29 AM).
I-Like-Shiny-Pichu's Avatar
I-Like-Shiny-Pichu I-Like-Shiny-Pichu is offline
 
Join Date: Mar 2010
Location: Somewhere that might be near you, but most likely isn't.
Age: 19
Gender: Female
Nature: Lonely
Posts: 371
Forgive me for the n00b question, but...how do I refresh?
__________________





Yandere and proud!

HCF

Co-Admin of HCF & TCC
Reply With Quote
  #8    
Old July 22nd, 2012 (04:57 AM).
Catman's Avatar
Catman Catman is offline
Testosterone Incarnate
 
Join Date: Jul 2012
Location: Cyber Space
Age: 20
Gender: Male
Nature: Hasty
Posts: 66
Just have it update every frame
__________________
Be excellent to each other...
...and party on, dudes!
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 10:19 PM.