Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Sanity to drain in the dark and increase in the light?
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#8
RE: Get Sanity to drain in the dark and increase in the light?

I guess you might be able to do an oldState/currentState thing. Where, if the old state (previous update) of sanity is higher than the current state, then you know you are losing sanity. If you know you are losing sanity, you can subtract a constant value (albeit a small one) from the sanity. But that may run into problems with gaining sanity. IDK, not a good time for me to think xD.

Dark Seclusion Here
04-12-2012, 12:43 PM
Find


Messages In This Thread
RE: Get Sanity to drain in the dark and increase in the light? - by FragdaddyXXL - 04-12-2012, 12:43 PM



Users browsing this thread: 1 Guest(s)