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
Black screen with Text as Intro
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
RE: Black screen with Text as Intro

(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;

Script File:

PHP Code: (Select All)
void OnStart()
{
    
FadeOut(0); //Instant fade
    
PlayMusic("00_event_gallery.ogg"true1.0f0.0f1true);
    
SetMessage("Messages""SampleText"2.0f); //Will display the message in the category Messages within the entry SampleText for 2.0 seconds.
    
FadeIn(2);


Lang file:
PHP Code: (Select All)
<CATEGORY Name="Messages">
    <
Entry Name="SampleText">
        
Sample Text Here
    
</Entry>
</
CATEGORY
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
PHP Code: (Select All)
void OnStart()
{
    
FadeOut(0);
    
PlayMusic("00_event_gallery.ogg"true1.0f0.0f1true);
    
SetMessage("Messages""SampleText"2.0f);
    
FadeIn(2);

Experiment with the FadeOut and FadeIn until you got the message that you want.
As for the music thing, use the script below.
PHP Code: (Select All)
void OnEnter()
{
    
PlayMusic("00_event_gallery.ogg"true1.0f0.0f1true);

So that, whenever you enter the map, the music plays.

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-27-2013, 06:51 AM
Find


Messages In This Thread
Black screen with Text as Intro - by User01 - 02-26-2013, 01:10 AM
RE: Black screen with Text as Intro - by User01 - 02-26-2013, 11:26 AM
RE: Black screen with Text as Intro - by User01 - 02-26-2013, 11:43 AM
RE: Black screen with Text as Intro - by User01 - 02-26-2013, 07:17 PM
RE: Black screen with Text as Intro - by PutraenusAlivius - 02-27-2013, 06:51 AM
RE: Black screen with Text as Intro - by NaxEla - 02-27-2013, 07:24 AM



Users browsing this thread: 1 Guest(s)