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
|
How Do i fade in/out - Itskody - 04-06-2011 Im trying to get my custom story to fade out before the credits roll, but i cant seem to get it working. Is this right? PHP Code: void EndGame(string &in asParent, string &in asChild, int alState) All i want to do is fade out, but idk what to do. RE: How Do i fade in/out - Russ Money - 04-06-2011 Sadly, you can't have FadeIn and FadeOut under the same function. Make a timer for four seconds and FadeIn RE: How Do i fade in/out - Itskody - 04-06-2011 (04-06-2011, 10:10 AM)Russ Money Wrote: Sadly, you can't have FadeIn and FadeOut under the same function. Make a timer for four seconds and FadeIn ok thanks, i got it now i dont feel like making ANOTHER post, so do you think you can help me with loading times, like how to get a picture on the loading screen and possibly say something other than loading....? if not ill just make another topic. RE: How Do i fade in/out - Russ Money - 04-06-2011 In your extra_english.lang file, (or whichever language you're working in) make a new Category and add this. Code: <CATEGORY Name="LoadingText"> You can use <br> for breaks (starting a new line) when editing .lang file. Then, in your script. Code: SetupLoadScreen(string &asTextCat, string &asTextEntry, int alRandomNum, string &asImageFile); string &asTextCat - The category, which is "LoadingText" string &asTextEntry - the "NAME_OF_ENTRY" int alRandomNum - I believe if you have numbered NAME_OF_ENTRY names, it'll choose a random one. I normally have it as 0 string &asImageFile - Inside your custom story root folder, make subfolders which will lead to "YOUR CUSTOM STORY"\graphics\general, in there you can put .jpgs to call as your loading backgrounds. If you want anymore help on this or anything else, add me to Steam and you can feel free to PM me. RE: How Do i fade in/out - Itskody - 04-06-2011 (04-06-2011, 10:24 AM)Russ Money Wrote: In your extra_english.lang file, (or whichever language you're working in) make a new Category and add this. I have no games on steam so cant add you. and does the SetupLoadScreen get put in the hps file? and how do i seperate 1 loading screen from another. RE: How Do i fade in/out - Russ Money - 04-06-2011 Yeah, in the .hps Here's my .lang file, to give you an example. Code: <CATEGORY Name="LoadingText"> And the .hps Code: void OnStart() To change them, just setup another SetupLoadScreen func. RE: How Do i fade in/out - Itskody - 04-06-2011 (04-06-2011, 11:46 AM)Russ Money Wrote: Yeah, in the .hps Alright thanks i got it, but when i load up a map, the picture or anything i wrote didnt show up, they only show up if i leave the room and re enter, i tried putting the SetupLoadinScreen both on void OnStart and void OnEnter but either way it either only loads the first time, or doesnt load the first time but loads the second, how can i make it load both? hopefully that makes sense RE: How Do i fade in/out - Russ Money - 04-06-2011 If you're talking about changing the loading screen, the only way I can describe it is the face-shield crying blood tears, I don't believe that can be done without a full conversion mod. And I have no idea how to do that at this moment. But the load screens change whenever you have them changing. If it's OnStart of your first map, it's going to only show the load screen once you leave. Otherwise, I'm not too sure what you're saying. RE: How Do i fade in/out - Itskody - 04-06-2011 (04-06-2011, 12:10 PM)Russ Money Wrote: If you're talking about changing the loading screen, the only way I can describe it is the face-shield crying blood tears, I don't believe that can be done without a full conversion mod. And I have no idea how to do that at this moment. i mean if i go from my first map to my second map, the loading screen doesnt show, but when i leave my second map to go to my first map, then go BACK to my second map, the loading screen shows up get it? RE: How Do i fade in/out - Russ Money - 04-06-2011 Have you tried placing it under Code: void OnLeave() |