How to make screen fade to black?

Monkey Forums/Monkey Beginners/How to make screen fade to black?

Impmaster(Posted 2014) [#1]
Hey all, I'm here with another question (sorry I'm spamming the forums so much, I'm doing the Ludum Dare, and this is the fastest way of getting information.)

I have a character that dies, and I want the screen to dip to black when he dies and display a message. What is the code I'll need for that?


therevills(Posted 2014) [#2]
The easiest way is to draw a black rectangle which fills up the screen with an alpha of 0 and increase the alpha.


Impmaster(Posted 2014) [#3]
Alright, that works. Is there no prebuilt command to fade in or anything?


dawlane(Posted 2014) [#4]
Is there no prebuilt command to fade in or anything?
No.
Unlike some other tools out there, Monkey gives you complete control and full access the the code that makes it all work. So you have complete control.