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
How to make all screen black?
summit Offline
Senior Member

Posts: 273
Threads: 20
Joined: Jun 2013
Reputation: 7
#1
How to make all screen black?

Hello guys, I am working on a new project. I want to be all screen black. You can't see anything. And I'm going to show messages on screen. I will tell the story like that. I know how to show messages but I don't know how to make all screen black. So my messages look better with all screen black.
08-27-2013, 03:06 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#2
RE: How to make all screen black?

(08-27-2013, 03:06 PM)Arbies Wrote: Hello guys, I am working on a new project. I want to be all screen black. You can't see anything. And I'm going to show messages on screen. I will tell the story like that. I know how to show messages but I don't know how to make all screen black. So my messages look better with all screen black.

FadeOut(0); //This will fade the screen out instantly.

FadeIn(5); //This will fade the screen back in over 5 seconds.

Closure ModDB page:

[Image: 16LO8Sx]
08-27-2013, 03:13 PM
Find
summit Offline
Senior Member

Posts: 273
Threads: 20
Joined: Jun 2013
Reputation: 7
#3
RE: How to make all screen black?

(08-27-2013, 03:13 PM)sonataarctica Wrote:
(08-27-2013, 03:06 PM)Arbies Wrote: Hello guys, I am working on a new project. I want to be all screen black. You can't see anything. And I'm going to show messages on screen. I will tell the story like that. I know how to show messages but I don't know how to make all screen black. So my messages look better with all screen black.

FadeOut(0); //This will fade the screen out instantly.

FadeIn(5); //This will fade the screen back in over 5 seconds.
Oh thanks, I thinked FadeOut and FadeIn works for another thing.

And there is one more question, I want to make my message stay on the screen like 30 seconds, how can I make it stay 30 sec with codes?
08-27-2013, 03:16 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#4
RE: How to make all screen black?

(08-27-2013, 03:16 PM)Arbies Wrote:
(08-27-2013, 03:13 PM)sonataarctica Wrote:
(08-27-2013, 03:06 PM)Arbies Wrote: Hello guys, I am working on a new project. I want to be all screen black. You can't see anything. And I'm going to show messages on screen. I will tell the story like that. I know how to show messages but I don't know how to make all screen black. So my messages look better with all screen black.

FadeOut(0); //This will fade the screen out instantly.

FadeIn(5); //This will fade the screen back in over 5 seconds.
Oh thanks, I thinked FadeOut and FadeIn works for another thing.

And there is one more question, I want to make my message stay on the screen like 30 seconds, how can I make it stay 30 sec with codes?

When using messages, the length the message is displayed for is the third parameter, for example this message would display for 15 seconds:

SetMessage("Message1Category", "Message1Text", 15);

Closure ModDB page:

[Image: 16LO8Sx]
08-27-2013, 03:19 PM
Find
summit Offline
Senior Member

Posts: 273
Threads: 20
Joined: Jun 2013
Reputation: 7
#5
RE: How to make all screen black?

(08-27-2013, 03:19 PM)sonataarctica Wrote:
(08-27-2013, 03:16 PM)Arbies Wrote:
(08-27-2013, 03:13 PM)sonataarctica Wrote:
(08-27-2013, 03:06 PM)Arbies Wrote: Hello guys, I am working on a new project. I want to be all screen black. You can't see anything. And I'm going to show messages on screen. I will tell the story like that. I know how to show messages but I don't know how to make all screen black. So my messages look better with all screen black.

FadeOut(0); //This will fade the screen out instantly.

FadeIn(5); //This will fade the screen back in over 5 seconds.
Oh thanks, I thinked FadeOut and FadeIn works for another thing.

And there is one more question, I want to make my message stay on the screen like 30 seconds, how can I make it stay 30 sec with codes?

When using messages, the length the message is displayed for is the third parameter, for example this message would display for 15 seconds:

SetMessage("Message1Category", "Message1Text", 15);
Oh thanks. I almost forgot everything.
08-27-2013, 03:21 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#6
RE: How to make all screen black?

(08-27-2013, 03:21 PM)Arbies Wrote:
(08-27-2013, 03:19 PM)sonataarctica Wrote:
(08-27-2013, 03:16 PM)Arbies Wrote:
(08-27-2013, 03:13 PM)sonataarctica Wrote:
(08-27-2013, 03:06 PM)Arbies Wrote: Hello guys, I am working on a new project. I want to be all screen black. You can't see anything. And I'm going to show messages on screen. I will tell the story like that. I know how to show messages but I don't know how to make all screen black. So my messages look better with all screen black.

FadeOut(0); //This will fade the screen out instantly.

FadeIn(5); //This will fade the screen back in over 5 seconds.
Oh thanks, I thinked FadeOut and FadeIn works for another thing.

And there is one more question, I want to make my message stay on the screen like 30 seconds, how can I make it stay 30 sec with codes?

When using messages, the length the message is displayed for is the third parameter, for example this message would display for 15 seconds:

SetMessage("Message1Category", "Message1Text", 15);
Oh thanks. I almost forgot everything.

No problem. If you get stuck, I suggest using this page, it's very helpful Big Grin
http://wiki.frictionalgames.com/hpl2/amn..._functions

Closure ModDB page:

[Image: 16LO8Sx]
08-27-2013, 03:22 PM
Find
summit Offline
Senior Member

Posts: 273
Threads: 20
Joined: Jun 2013
Reputation: 7
#7
RE: How to make all screen black?

(08-27-2013, 03:22 PM)sonataarctica Wrote:
(08-27-2013, 03:21 PM)Arbies Wrote:
(08-27-2013, 03:19 PM)sonataarctica Wrote:
(08-27-2013, 03:16 PM)Arbies Wrote:
(08-27-2013, 03:13 PM)sonataarctica Wrote: FadeOut(0); //This will fade the screen out instantly.

FadeIn(5); //This will fade the screen back in over 5 seconds.
Oh thanks, I thinked FadeOut and FadeIn works for another thing.

And there is one more question, I want to make my message stay on the screen like 30 seconds, how can I make it stay 30 sec with codes?

When using messages, the length the message is displayed for is the third parameter, for example this message would display for 15 seconds:

SetMessage("Message1Category", "Message1Text", 15);
Oh thanks. I almost forgot everything.

No problem. If you get stuck, I suggest using this page, it's very helpful Big Grin
http://wiki.frictionalgames.com/hpl2/amn..._functions
I know Smile Thanks again, but I couldn't the thing that I search for Big Grin
08-27-2013, 03:27 PM
Find




Users browsing this thread: 1 Guest(s)