Game Time extension

:raised_hand:Hi everyone,

I’ve just released a new GDevelop extension that I’ve been working on for a while:

:stopwatch: Pixel House Game Time

The original idea was to create a simple Day/Night system – but during development it grew into something much bigger: a complete Game Time Engine for GDevelop.

Instead of building your own clock, calendar, timers, save logic and time events with lots of variables, Pixel House Game Time handles these systems for you.

:globe_showing_europe_africa: CREATE YOUR OWN GAME TIME

You can define your own calendar rules:

• Seconds, minutes, hours, days, months and years
• Custom minutes per hour
• Custom hours per day
• Custom days per month
• Custom months per year
• Adjustable real-time → game-time conversion

So you are not limited to an Earth-like calendar.

For example, you could create an alien world with:

80 minutes per hour
30 hours per day
20 days per month
8 months per year

:high_voltage: CONTROL TIME

The extension includes actions for:

• Start / Stop
• Pause / Resume
• Toggle Pause
• Reset
• Adjustable Time Speed
• Skip Time

Time Speed can use arbitrary multipliers such as:

0.5x
1x
3.7x
10x
20x
100x

And Skip Time can move through seconds, minutes, hours, days, months or years – including backwards.

This can be useful for sleeping, fast travel, simulations or even time-travel mechanics.

:bell: REACT TO TIME

There are built-in triggers such as:

• New Second
• New Minute
• New Hour
• New Day
• New Month
• New Year
• Time Just Reached

For example:

New Day → Grow crops
New Hour → Calculate production
Time Just Reached → Start a special event

No additional Trigger Once condition is needed for the New Time triggers.

:sun: DAY & NIGHT

You can freely define when day and night begin.

For example:

Day: 06:00
Night: 20:00

Then simply use:

Is Daytime
Is Nighttime

There is also Is Time Between, which can be useful for things like:

08:00 – 18:00 → Shop is open
20:00 – 06:00 → Night enemies appear

:floppy_disk: SAVE / LOAD

The extension also includes its own Game Time save system:

• Save Game Time
• Load Game Time
• Delete Game Time Save
• Game Time Save Exists
• Auto Save
• Auto Load

For beginners, Auto Save + Auto Load can handle most of this automatically.

:video_game: INTERACTIVE BROWSER DEMO

I also created an interactive HTML5 example that can be tested directly on the itch.io page.

You can change the Time Speed, skip hours/days/years, pause the clock, test Save/Load and watch the Day/Night and Time Trigger systems working in real time.

The download package also includes a fully commented GDevelop example project, so you can open the Events Sheet and see how the different features are used.

The comments inside the example project are written in English.

:globe_with_meridians: Designed for GDevelop and cross-platform projects:
Windows • Linux • macOS • Android • iOS • Web

If you’re working on an RPG, farming game, survival game, tycoon, RTS or simulation, I’d be really interested to hear what kind of time systems you would use it for.

Feedback and feature ideas are very welcome! :slightly_smiling_face:

https://markusschuetz.itch.io/pixel-house-game-time