![]() |
How Do i fade in/out - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: How Do i fade in/out (/thread-7215.html) Pages:
1
2
|
RE: How Do i fade in/out - Itskody - 04-06-2011 (04-06-2011, 12:23 PM)Russ Money Wrote: Have you tried placing it under Nope, ill try Alright that worked, but like i said a while ago, i have 2 level doors on my first map which goes to 2 other maps, so its like: Map 1 > Map 2.... and then.... Map 1 > Map 3 How do i get multiple screen loads on one map, so like. how can i make it so when i go from map 1 to map 2 is says something different than map 1 to map 3. or is that not possible? RE: How Do i fade in/out - MrBigzy - 04-06-2011 You can use global variables to make it change what screen it loads. So like, set a variable as 1, and then make it go to 2 or something when you do something in map 2, or whatever it is you want to do. RE: How Do i fade in/out - Itskody - 04-06-2011 (04-06-2011, 02:33 PM)MrBigzy Wrote: You can use global variables to make it change what screen it loads. So like, set a variable as 1, and then make it go to 2 or something when you do something in map 2, or whatever it is you want to do. I dont understand what you mean RE: How Do i fade in/out - MrBigzy - 04-06-2011 You can set a global variable, say SetGlobalVarInt("LevelLoad", 1). It will make an int named LevelLoad equal to 1. Then you can put in your script: Code: if(GetGlobalVarInt("LevelLoad")==1) //put your levelload with the background here Then, when you do something on the 2nd map, make it go SetGlobalVarInt("LevelLoad", 2) That way, when you go back, it'll load the 2nd background. Edit: Oh, I see, two level doors. So do what I said before, but put two areas with collides, one before each level door. And then put SetGlobalVarInt in both of those areas so it will set what background to use. RE: How Do i fade in/out - Itskody - 04-06-2011 (04-06-2011, 03:13 PM)MrBigzy Wrote: You can set a global variable, say SetGlobalVarInt("LevelLoad", 1). It will make an int named LevelLoad equal to 1. Then you can put in your script: haha im so confused what you mean still, is there anyway you can go MORE in depth RE: How Do i fade in/out - MrBigzy - 04-06-2011 Okay. You have two level doors. You want each one to give different backgrounds. You would put script areas right before each door. In your script you add the collides and the functions. In the function for the first door area, you would put SetGlobarVarInt("LevelDoor", 1). For the second door area, you would put SetGlobarVarInt("LevelDoor", 2). Actually, scratch that, I don't think you even need variables. Put the areas like I said before. But in the functions, just put the SetupLoadScreen in each function, one for each corresponding door. Make sure the collide is false for destroying the collide so it happens everytime you enter it. RE: How Do i fade in/out - Itskody - 04-06-2011 (04-06-2011, 04:07 PM)MrBigzy Wrote: Okay. You have two level doors. You want each one to give different backgrounds. You would put script areas right before each door. In your script you add the collides and the functions. In the function for the first door area, you would put SetGlobarVarInt("LevelDoor", 1). For the second door area, you would put SetGlobarVarInt("LevelDoor", 2). ok but do i do this on my map 1 or do i do it on my seperate maps? so put a script in map 3 infront of the door and in map 2. RE: How Do i fade in/out - MrBigzy - 04-06-2011 You'll need to do it on both sides of the doors I think. So in all maps. Just put a script area in front of each door on either side, and set it up so the SetupLoadScreen is called with the text and picture you want. If you ever want to have different backgrounds at different times with the same door, you'll need variables though. RE: How Do i fade in/out - Itskody - 04-06-2011 It isnt working for me. NEVERMIND it is working, thank you very much for your help RE: How Do i fade in/out - MrBigzy - 04-06-2011 No problem ![]() |