record date
rob*m
Member Posts: 5
hi, is there an easy way to record the current date in a game.
currently using 3 table values for day,month,year which is difficult to assimilate into games in chronological order.
any ideas??
currently using 3 table values for day,month,year which is difficult to assimilate into games in chronological order.
any ideas??
Comments
Hi @rob*m It's not difficult to "assimilate into games in chronological order" (although I'm not quite sure what you mean by that anyhow...)
The only hiccup is the US way of presenting a date with the UK way, unless that's what you meant anyway... so you might want to consider using a boolean for the user to make a choice...
But the stuff in the Display text is no problem:
For the UK: (and possibly Canada, etc)
Display Text game.Clock.Day.." / "..game.Clock.Month .." / ".. game.Clock.Year
For the US:
Display Text game.Clock.Month .." / "..game.Clock.Day.." / ".. game.Clock.Year
Then you can save the three elements to attribute; use 3 Save Attribute behaviours to save the dates if required, and 3 Load Attribute behaviours to return that previous date if needed.
Hope that helps.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Sorry for the ambiguity.I have used Display Text as you mentioned to display date on screen. But i need to record dates that events occurred. Then search the dates to find the first time an event occurred. I do not know how to record the date as a single entity, only in 3 pieces which makes it challenging although not impossible to recall. was just hoping that was missing something and there was an easy way to do this.
Like I said just a suggestion not sure if it will work.