Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Clock and Calendar workshop

Teaches MV users how to make a fully functional in-game clock and calendar · By JohnDoeNews

Nice work

A topic by jackGameTips created Dec 31, 2022 Views: 79 Replies: 1
Viewing posts 1 to 2
(1 edit)

I was looking to implement a time system in one of my project and stumbled upon your demo, I've played around with it and it's seem to work great. 

Potential bug:

I've seem there are way to get stuck when talking to Joe outside in winter

If you 'say nothing for now' thIe game just freeze, it seem that because instead of a break loop there a new loop started.  Seem ok in other season. 

Not sure if it me but the time of the variable seem to be share between save file, it might be the way I've copied all the variable into my project. 

Use case: 

I'll try to find a way to display the time at all time via a hud or something, for now what I've got is a item that call a common event that display the time like the clock in your demo. 

I've managed to create a parallel common event that send the player to his bed at 2AM (kind of like stardew valley), work fine for now except for time skip (like sleeping in bed)

My ultimate goal with that is at the end of the day there some management result that would be show to the player via menu, text box and picture. Like a stardew valley when you send stuff in the bin or a item shop where you left somebody for the day to run the shop. 

I wonder if there a way to stop the time in certain situation, like when in menu or during cutscene. 

Another thing I'll probably change down the line is the way the bed work, I want it to just wake up the next day at 6AM, but this is just a personnal preference.. 

I haven't played much with the season and weather yet, but it look promissing. 

Developer

Thanks for trying the system. 

The demo indeed freezes when you talk to John outside in winter. This is an error in the demo though, this should not effect your project at all. I should fix this some time. :p 

The time is not shared in between save files.  It is based on the players play-time, so that should not be possible.

You could show the time trough a hud, but there is a big downside to that: The time only changes when you run the common event. So if you want the time to update every second, the common event has to run every second. This can cause lag. 

Freezing time when the menu is open or during cuts cenes is also a hard knocker, because the time is based on the players play-time. 

Waking up at 6am should be perfectly possible. Just calculate how many hours are left between the time they go to bed and 6am, and let that be the amount of hours they sleep.

I'm happy you like the system. :) 

Oh, and happy new year!