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


Thread Rating:
  • 3 Vote(s) - 1.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monster only in darkness???
morgoe Offline
Junior Member

Posts: 6
Threads: 2
Joined: Nov 2010
Reputation: 0
#19
RE: Monster only in darkness???

Not sure on how to block enemies' movement, but to detect whether the player is in a lit environment:

Run a timer every second, getting the Player's sanity. Save it to an int variable called 'lastSanity' or something, and then if the current sanity > lastSanity, he's in a lit environment, else he's in darkness. Doesn't account for insanity events, but other than that it works really well.

I'm using a similar method in my map to disable sanity regeneration when you're moving.
11-18-2010, 07:52 AM
Find


Messages In This Thread
Monster only in darkness??? - by Everlone - 11-14-2010, 12:55 PM
RE: Monster only in darkness??? - by Chilton - 11-14-2010, 01:20 PM
RE: Monster only in darkness??? - by Everlone - 11-14-2010, 01:31 PM
RE: Monster only in darkness??? - by Chilton - 11-14-2010, 01:40 PM
RE: Monster only in darkness??? - by Everlone - 11-14-2010, 01:53 PM
RE: Monster only in darkness??? - by Hooumeri - 11-14-2010, 02:05 PM
RE: Monster only in darkness??? - by Everlone - 11-14-2010, 02:19 PM
RE: Monster only in darkness??? - by Hooumeri - 11-15-2010, 10:53 AM
RE: Monster only in darkness??? - by Kyle - 11-15-2010, 12:06 PM
RE: Monster only in darkness??? - by Hooumeri - 11-15-2010, 01:54 PM
RE: Monster only in darkness??? - by Everlone - 11-15-2010, 12:13 PM
RE: Monster only in darkness??? - by Chilton - 11-15-2010, 12:59 PM
RE: Monster only in darkness??? - by Everlone - 11-15-2010, 01:46 PM
RE: Monster only in darkness??? - by Chilton - 11-15-2010, 02:40 PM
RE: Monster only in darkness??? - by Everlone - 11-15-2010, 03:03 PM
RE: Monster only in darkness??? - by anzki - 11-15-2010, 04:41 PM
RE: Monster only in darkness??? - by Everlone - 11-15-2010, 05:03 PM
RE: Monster only in darkness??? - by HakePT - 11-16-2010, 05:29 PM
RE: Monster only in darkness??? - by morgoe - 11-18-2010, 07:52 AM



Users browsing this thread: 1 Guest(s)