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
User01 Offline
Member

Posts: 97
Threads: 30
Joined: Feb 2013
Reputation: 0
#7
RE: Black screen with Text as Intro

(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
(This post was last modified: 02-26-2013, 07:46 PM by User01.)
02-26-2013, 07:17 PM
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)