• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Windows A question about showing the time and date, request help

H

hykwf233

Guest
Hello everyone, I am yuke.
I have a savegame and loadgame feature in my game, but I want to display the time and date of the archive when savinggame and loadgame. How do I implement this feature?
Please give me some help, thank you~
The effect is as follows:
 

Attachments

jonjons

Member
You can look into this function in gm, it will give the current date and time
date_datetime_string(date_current_datetime());
 
H

hykwf233

Guest
[QUOTE =“jonjons,post:382370,member:17083”]你可以在gm中查看这个函数,它会给出当前的日期和时间
date_datetime_string(date_current_datetime()); [/ QUOTE]

So how do I display the last archived time on the interface of loadgame?
 

jonjons

Member
You need to use the draw event, but if you are using a menu you need to place it in the part of the menu were it shows the load game files

draw event
Code:
var saveDay = date_datetime_string(date_current_datetime());
draw_text(x, y, "This is the Save Date: " + string(saveDay ));
[edit] why are all those chinese characters in your quote has my data been hacked again ?
 
Top