Help with ending.lua
Posted: Tue Feb 05, 2013 7:04 pm
Argh. I was in "preview" and went to Modding, wiped out my post, so it's gonna be shorter
Basically, I copied intro.lua to ending.lua and edited a few things like the text, moved the text section above the title section, then changed the title section to just "The End". I also took out the cinematic hoping the text would just appear onscreen overlaying the room you're in. Well intro.lua starts and then the screen goes black and eventually starts playing the credits. So I'm doing something very wrong. Sorry, once again 
=====================
-- ending music
enableUserInput()
startMusic("assets/samples/music/intro.ogg")
-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
You have returned to where your adventure first began. blah blah blah..... However, you and your friends are the ones in a pit looking up.
Congratulations! Hope you enjoyed your adventure!
]])
click()
fadeOutText(0.5)
-- show the title text
sleep(1)
setFont("IntroTitle")
showText("The End", 3)
sleep(2)
fadeOutText(1)
fadeOut(4)
fadeOutMusic(3)
===========
The script_entity is triggered by the wall button that opens the secret door back into the starting room.


=====================
-- ending music
enableUserInput()
startMusic("assets/samples/music/intro.ogg")
-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
You have returned to where your adventure first began. blah blah blah..... However, you and your friends are the ones in a pit looking up.
Congratulations! Hope you enjoyed your adventure!
]])
click()
fadeOutText(0.5)
-- show the title text
sleep(1)
setFont("IntroTitle")
showText("The End", 3)
sleep(2)
fadeOutText(1)
fadeOut(4)
fadeOutMusic(3)
===========
The script_entity is triggered by the wall button that opens the secret door back into the starting room.