• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Real time clock displayed on screen

I-Like-Shiny-Pichu

ClariS <3
  • 382
    Posts
    14
    Years
    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
     
    Is there a function that checks the system time?

    If not you could always build a clock with variables
     
    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)
     
    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
     
    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
     
    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!
     
    Just have it update every frame
     
    Back
    Top