![]() |
Black screen with Text as Intro - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Black screen with Text as Intro (/thread-20863.html) |
Black screen with Text as Intro - User01 - 02-26-2013 Hello, first of all my english is really noit perfect but I will hope that you can understand me well and please make your answers understandable, thanks. ![]() I was lookin at frictionalgames.com but really it didnt help me because I'm a total beginner on making a Custom Story + my english sucks a bit lol. What I want is: Before you can controll the player, I want to make an Intro (black screen) and there should blend some white texts. And after that, I can play the game. How is it possible? Please explain everything I need to do and where to put the script. Thanks in advantage ![]() Edit: Oh and maybe want to put music in the intro too RE: Black screen with Text as Intro - OriginalUsername - 02-26-2013 Use FadeOut(0,001f); so the screen will fade out so fast, the player won't notice it. Then use FadeIn(2); to let it fade in again. For the music: PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume); Code: PlayMusic("The name of the music file", (if it should loop, true or false), (The volume of the music, usually 1), (Time until the music hits full volume), (priority, usually 1), (if it should continue after a StopMusic(); is used. if false, the track will be restarted)); Good luck! Edit: for more help with commands: use this RE: Black screen with Text as Intro - User01 - 02-26-2013 Hi, for first i just used any music for example 00_event_gallery.ogg so here i copy the code i used: { FadeOut(0,001f); PlayMusic("00_event_gallery", (false), (1), (0.5), (1), (no(); false)); FadeIn(2); } then when i start the game there will come a fatal error. please make a sample for me. and also i still dont know how to add text yet ![]() RE: Black screen with Text as Intro - PutraenusAlivius - 02-26-2013 Something is wrong. The PlayMusic thing is not right. Use the command below on your .hps file. PHP Code: PlayMusic("00_event_gallery.ogg", true, 1.0f, 0.0f, 0, false); In order to add the text, add the command below in your .hps file. PHP Code: SetMessage("MessageCategory", "MessageEntry", 0); MessageCategory - The text's category on the extra_english.lang file. MessageEntry - The text's entry on the extra_english.lang file. Hope it helps. Also if you're confused, i could give you the full script. RE: Black screen with Text as Intro - User01 - 02-26-2013 I will try it now (I will let you know if I works then), but please give me the full script now to get sure okay? ![]() Edit: No doesn't work. Also I dont know what to put in extra english. Thats the script i have so far: { FadeOut(0,001f); PlayMusic("00_event_gallery.ogg", true, 1.0f, 0.0f, 0, false); SetMessage("?", "?", 0); FadeIn(2); } RE: Black screen with Text as Intro - Linus Ågren - 02-26-2013 You need to create a category and an entry in your lang file; Script File: PHP Code: void OnStart() Lang file: PHP Code: <CATEGORY Name="Messages"> RE: Black screen with Text as Intro - User01 - 02-26-2013 (02-26-2013, 12:29 PM)junkfood2121 Wrote: You need to create a category and an entry in your lang file;Yes it works, thanks but it now the screen fades directly in the game and then the text comes, I want to have it that the screen keeps black for some seconds, its the moment where the message should come and then after it, it should fade in to the game like: > black screen > message fade in > message fades out > game fades in edit: Another mistake. When i press the start and go back to the game, the music will play again RE: Black screen with Text as Intro - PutraenusAlivius - 02-27-2013 (02-26-2013, 07:17 PM)User01 Wrote:(02-26-2013, 12:29 PM)junkfood2121 Wrote: You need to create a category and an entry in your lang file;Yes it works, thanks but it now the screen fades directly in the game and then the text comes, I want to have it that the screen keeps black for some seconds, its the moment where the message should come and then after it, it should fade in to the game PHP Code: void OnStart() As for the music thing, use the script below. PHP Code: void OnEnter() RE: Black screen with Text as Intro - NaxEla - 02-27-2013 (02-26-2013, 07:17 PM)User01 Wrote: Yes it works, thanks but it now the screen fades directly in the game and then the text comes, I want to have it that the screen keeps black for some seconds, its the moment where the message should come and then after it, it should fade in to the game PHP Code: void OnStart() |