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
Secret Idea (dun dun DUN) + Help Needed
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#7
RE: Secret Idea (dun dun DUN) + Help Needed

Check out the scripts for the trancept level, the torture rooms constantly damage your sanity at a rate of .3 per second or something, and it plays a scary sound, too! Just use that code and then add another area outside that with SetPlayerSanity as its collision callback, and make sure it's set to not destroy the callback on running. Also, make the area outside the one you want to destroy your sanity be inactive by default, then once the sanity destroying area is entered, enable it. Then make the second function disable itself again.

Basically:

Area 1: the one that destroys sanity.
Area 2: the one that restores it back.

Area 1 is active by default, area 2 is inactive by default. Player enters area 1, and it constantly damages sanity and plays a sound as long as the player is in it. It also enables area 2. Player then enters area 2, runs SetPlayerSanity, and disables itself so it can't be triggered again until it's enabled again by area 1.

[Image: signature-2.png]
04-06-2011, 09:55 PM
Find


Messages In This Thread
RE: Secret Idea (dun dun DUN) + Help Needed - by Streetboat - 04-06-2011, 09:55 PM



Users browsing this thread: 1 Guest(s)