トピック
Aaron Krondelo

Implementing Time?

I'm wondering how you guys would implement time in your game. More specifically would be for a survival game where you ho through each day/night.
1そうだね
プレイ済み
返信[1]
親投稿
PChicken NerdChicken
IF MAINCNT-PMCNT > 59 THEN INC MIN IF MIN > 59 THEN MIN=0 INC HOUR ENDIF IF HOUR > 23 THEN HOUR=0 INC DAY ENDIF PMCNT=MAINCNT ENDIF
1そうだね
プレイ済み
返信[2]
親投稿
Aaron Krondelo
That's one way, what is PMCNT? Also, I was thinking to just have certain actions require certain amounts of time, then you have to be in bed by 10 pm.
0そうだね
プレイ済み
返信[3]
親投稿
PChicken NerdChicken
PMCNT is not a system variable. It just stands for Previous Main Count.
0そうだね
プレイ済み
返信[4]
親投稿
Aaron Krondelo
Oh gotchya, thanks!
0そうだね
プレイ済み