Page 1 of 1

Cinematic, no text visible

Posted: Tue Sep 18, 2012 11:37 am
by NylePudding
I just followed the tutorial about how to make a cinematic after pretty much copy pasting the tutorial it doesn't completely work. I've managed to get my own custom music to play, however the text such as the intro and basic text simply isn't showing. The whole time my music plays in the background while the screen is black.

Here's my intro.lua file -

Code: Select all

--Intro to Apollyon's Lair
enableUserInput()
startMusic("mod_assets/sounds/intro.ogg")
-- show the title text
sleep(1)
setFont("IntroTitle")
showText("Apollyon's Lair", 3)
sleep(2)
fadeOutText(1)
-- show the story text
sleep(1)
setFont("Intro")
textWriter("test")
click()
fadeOutText(0.5)
fadeOut(4)
fadeOutMusic(3)
When I click the music fades out and my dungeon starts, so does anyone have any clue of how to fix this? I did a little search so I don't think anyone on these forums has had the same problem. (Sorry if my searching skills aren't up to par and there has been someone with the same problem)

Re: Cinematic, no text visible

Posted: Tue Sep 18, 2012 12:07 pm
by antti
The cinematics start faded out by default. You can fix this by adding a fadeIn, like this for example:

Code: Select all

--Intro to Apollyon's Lair
enableUserInput()
startMusic("mod_assets/sounds/intro.ogg")
-- show the title text
fadeIn(1)
sleep(1)
setFont("IntroTitle")
showText("Apollyon's Lair", 3)
sleep(2)
fadeOutText(1)
-- show the story text
sleep(1)
setFont("Intro")
textWriter("test")
click()
fadeOutText(0.5)
fadeOut(4)
fadeOutMusic(3)

Re: Cinematic, no text visible

Posted: Tue Sep 18, 2012 1:49 pm
by NylePudding
Thank you very much, I thought that was a part of showing the image for some reason. Won't make that mistake again. =P