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
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#9
RE: Black screen with Text as Intro

(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

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);  // instant fade
    
SetMessage("Category""Entry"3.0f);  // will show the message for 3 seconds
    
AddTimer(""3.0f"DoFadeIn");  // will execute the DoFadeIn function after 3 seconds
}

void DoFadeIn(string &in asTimer)
{
    FadeIn(2.0f);  // fades in over a period of 2 seconds
}

void OnEnter()
{
    
PlayMusic("00_event_gallery.ogg"true1.0f0.0f1true);  // plays the music every time the player enters the map


In Ruins [WIP]
02-27-2013, 07:24 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 NaxEla - 02-27-2013, 07:24 AM



Users browsing this thread: 1 Guest(s)