xripx 12 Posted August 14, 2011 Hi guys, I'd like my mission to start with a black screen (with some text) which lasts maybe 5 seconds, then the text fades away followed by the mission fading in. Also, I want the audio to fade from the very beginning, both sounds effects and custom music that I'd like to add. How do I do this? In my init.sqf I have: titleText ["Jungle Trek\n\n by Rip\n\nVersion 1", "BLACK IN", 5]; But which is close, but it doesn't fade away it just disappears. The text obviously doesn't fade either. I searched around but I couldn't find a thread about starting black, staying black for a while, then fading in. So... what do I do? Thanks in advance. Share this post Link to post Share on other sites
demonized 20 Posted August 14, 2011 titleText ["", "BLACK FADED", 0]; titleText ["Jungle Trek\n\n by Rip\n\nVersion 1", "BLACK IN", 5]; fadeSound fadeMusic Share this post Link to post Share on other sites
xripx 12 Posted August 14, 2011 Thank you for the quick response. That's closer, but not quite there. With that code you posted, it starts black, but is only a solid black for a fraction of a second, then fades in. I want it to be black for 5-10 seconds, then fade in. I've tried fiddling with the numbers but I usually end up with a black screen that doesn't go away. Share this post Link to post Share on other sites
Clayman 20 Posted August 14, 2011 cutText ["Jungle Trek\n\n by Rip\n\nVersion 1", "BLACK FADED"]; 10 fadeSound 1; 10 fadeMusic 0.5; sleep 5; titleCut ["", "BLACK IN", 5]; Share this post Link to post Share on other sites
xripx 12 Posted August 14, 2011 Looks like that did it, thanks guys! Share this post Link to post Share on other sites
xripx 12 Posted August 15, 2011 Bit of a follow up on this one... that code DID work, but how do I have that text fade in, then fade out? Right now it's there from the start and for the right amount of time, then just disappears instead of fading out. The black is perfect, I just want to change the text. How do I do that? Share this post Link to post Share on other sites
demonized 20 Posted August 15, 2011 use this, ive set the text time to 10, change it to what suits your needs. titleText ["Jungle Trek\n\n by Rip\n\nVersion 1", "BLACK", 10]; cutText ["", "BLACK FADED"]; 10 fadeSound 1; 10 fadeMusic 0.5; sleep 5; titleCut ["", "BLACK IN", 5]; Share this post Link to post Share on other sites
xripx 12 Posted August 16, 2011 With that code, it starts black, the text fades in, then after 5 seconds the scene fades in but BARELY... still very dark... then after a couple seconds goes back to solid black and stays that way with the text. Share this post Link to post Share on other sites
demonized 20 Posted August 16, 2011 i mixed up some of the titlecut and cuttext.... i blame leprecauns. the error is that titlecut, cut text etc, are their own courtain in your view, if you have 2 black, and remove the one, then there is still one black one left... anyhow, tested this, got somewhat the desired effect. 10 fadeSound 1; 10 fadeMusic 0.5; titleText ["", "BLACK FADED"]; sleep 2; titleText ["Jungle Trek\n\n by Rip\n\nVersion 1", "BLACK IN", 8]; sleep 8; titleText ["", "PLAIN"]; Share this post Link to post Share on other sites
xripx 12 Posted August 16, 2011 (edited) ^^ Yep, that's what I figured. I was trying to fiddle with the effects and numbers, didn't think to fiddle with the cuttext. I'm going to educate myself more on "cuttext" and "titletext". Great, will test when I get home. Thanks for your patience with me so far. Edited August 16, 2011 by xRipx Share this post Link to post Share on other sites
xripx 12 Posted August 17, 2011 Well that didn't do it either (it doesn't stay solid black for 10 seconds, instead it starts fading in immediately over the duration of 10 seconds ) BUT I've learned a lot and I'm determined to figure it out on my own with the knowledge and direction you've given me. Can't just have you guys do all the work!!! Currently this is as close as I can get: cutText ["Jungle Trek\n\n by Rip\n\nVersion 1", "BLACK FADED"]; 10 fadeSound 3; 10 fadeMusic 3; sleep 10; titleCut ["", "BLACK IN", 5]; The ONLY thing wrong with this is the text doesn't fade out, it just cuts out. But the black "curtain" is perfect. Anyway, thanks again! Share this post Link to post Share on other sites
SgtDThompson 10 Posted August 19, 2011 Where do I enter the Code: cutText ["Jungle Trek\n\n by Rip\n\nVersion 1", "BLACK FADED"]; 10 fadeSound 3; 10 fadeMusic 3; sleep 10; titleCut ["", "BLACK IN", 5]; I know that you enter it into the init.sqf but where do i find that? I am very new to Arma 2 so if you could help me with this that would be awesome Share this post Link to post Share on other sites
cobra4v320 27 Posted August 19, 2011 open notebook copy and paste that script into notebook save as init.sqf place init.sqf into your newly created mission folder Share this post Link to post Share on other sites
SgtDThompson 10 Posted August 19, 2011 Alright works great! Thanks for the help! Share this post Link to post Share on other sites
h34dup 148 Posted June 23, 2012 Thank god for the search function, this was exactly what I was looking for! Share this post Link to post Share on other sites