• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Game Time

Resource Game Time 1.0

Luka S.J.

Wastage of Time
Member
Joined
Mar 27, 2017
Posts
105
Luka S.J. submitted a new resource:

Game Time - Separate your game world from the real life.

Adds an "unreal time" engine to your game.

Manipulating time

You can use existing methods to skip ahead in time:

GameTime.move_to_morning skips the time to 06:00.
GameTime.move_to_afternoon skips the time to 12:00.
GameTime.move_to_evening skips the time to 19:00.
GameTime.move_to_night skips the time to 22:00.


Additionally, you can explicitly define which time to jump to...

Read more about this resource...
 

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
597
Just out of curiosity, is there something that makes this different than FL's Unreal Time system, or is it about the same?
 

xDracolich

Novice
Member
Joined
Jun 2, 2019
Posts
43
Before I download this, I need to know. Does it still mark everything based on your device's date, or does it use its own calendar, where you set the date?
 

Willøw

Main Dev of Pokemon Oraculum
Member
Joined
Nov 1, 2023
Posts
110
just to take away y'all curiosity, no, it is not compatible with the Volteon's Pause Menu (since most use it) or any other plugin that involves messing with the game's Time
 

-FL-

Pokémon Island Creator
Member
Joined
Aug 28, 2022
Posts
325
Just out of curiosity, is there something that makes this different than FL's Unreal Time system, or is it about the same?
As far as I've seen, the syntax of this script better (I made mostly of my script in 2013) and have some extra methods to skip time (like move_to_night instead of manually typing move_to_hour(22)). It also skips leap years. Besides this, looks the same.
 

Luka S.J.

Wastage of Time
Member
Joined
Mar 27, 2017
Posts
105
Just out of curiosity, is there something that makes this different than FL's Unreal Time system, or is it about the same?

It achieves the same thing, just in a slightly different way.

Before I download this, I need to know. Does it still mark everything based on your device's date, or does it use its own calendar, where you set the date?

It uses its own internal calendar. Which impacts the in-game seasons.

just to take away y'all curiosity, no, it is not compatible with the Volteon's Pause Menu (since most use it)

Not sure what that script does with time, but anything that uses pbGetTimeNow will work normally.
 

NoNoNever

Dev from Pokémon Illusion, Pokémon Arcadia
Member
Joined
Dec 11, 2018
Posts
114
just to take away y'all curiosity, no, it is not compatible with the Volteon's Pause Menu (since most use it) or any other plugin that involves messing with the game's Time
To make it compatible with voltseons pause menu add in game time this


Ruby:
Expand Collapse Copy
# Add the strftime method to format the time
    def strftime(format)
      time = Time.new(@year, @month, @day, @hour, @minute, @second)
      return time.strftime(format)
    end

so its look like this


Code:
Expand Collapse Copy
#===============================================================================
#  Game Time module
#    New components for an unreal-like time engine.
#    Bypasses the real-world `Time.now` components and
#    allows the game to keep track of its own in-game
#    time.
#===============================================================================
module GameTime
  #  Main class for the current time
  class Now
    #  Public attributes
    attr_accessor :hour
    attr_accessor :minute
    attr_accessor :second
    attr_accessor :day
    attr_accessor :month
    attr_accessor :year

    # Add the strftime method to format the time
    def strftime(format)
      time = Time.new(@year, @month, @day, @hour, @minute, @second)
      return time.strftime(format)
    end

    #  How many days in a month.
    #  Does not take leap years into consideration as year is constant
    #  and not taken into account.
    MONTH_DAYS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31].freeze
 
Back
Top