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
Keep level changes when coming back? [SOLVED]
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#2
RE: Keep level changes when coming back?

(04-20-2012, 03:49 PM)beecake Wrote: Yea so i have been searching and searching without finding anything about this.

My map has to be as realistic as it can be, and some doors ARE going to get smashed in different levels, but when i go back to the levels, the triggers of the monsters are gone, but the door is back! There must be a way to make it save the changes before leaving to a new level... but how?
The first thing that comes to my mind is something called "global variables" (the xGlobalVarInt() functions).
I think that Amnesia didn't keep track of opened doors in the original games. They were all closed when you reentered a level. However, for smashed doors, you could need to set a global variable to 1, and have the map automatically smash the door (preferably silently) every time the player enters the map and the global var is set. However, I'm a noob, so there might be other ways of handling this that I don't know about.


Noob scripting tutorial: From Noob to Pro

04-20-2012, 04:00 PM
Find


Messages In This Thread
RE: Keep level changes when coming back? - by Cranky Old Man - 04-20-2012, 04:00 PM



Users browsing this thread: 1 Guest(s)