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
If All Candles Inactive, Fade To Black Script?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#5
RE: If All Candles Inactive, Fade To Black Script?

(05-04-2013, 01:01 PM)Smoke Wrote: No, I just added a variable in OnStart() with the number 0. Everytime he collides with the script_area, the AddLocalVarInt adds 1 on top of that. So first time 0 + 1 = 1. So after the player unlits the first candle, the lamplit variable = 1. Same with the second and third candle.

You can check this with if(GetLocalVarInt("lamplit")===1) and if(GetLocalVarInt("lamplit")===2). And letting them play a sound or something in brackets.

Ah! I get it now. Thank you, this is perfect!
05-04-2013, 01:06 PM
Find


Messages In This Thread
RE: If All Candles Inactive, Fade To Black Script? - by FurtherGames - 05-04-2013, 01:06 PM



Users browsing this thread: 1 Guest(s)