|
Post by JLaCroix on Mar 30, 2004 15:29:49 GMT -5
Is there some code I can use to fade the screen in or out? Perhaps room creation code of some kind? I don't like the screens appearing so quickly...
Thanks!
|
|
|
Post by IsmAvatar on Mar 30, 2004 16:22:21 GMT -5
There are transition effects room_transition
but, fading is not one of them. In order to fade, there's 2 ways. One of them I'm not going to tell you out of respect of the person who discovered it. The other way is quite obvious. Firstly, you need to put the game in exclusive graphics mode. This will disable alert boxes and such, but will enable fancy graphics such as fading. It will also cause the screen to become permanently on fullscreen. The other way does not have any of these disabilities (and is perfectly legal, mind you).
screen_gamma is the command that fades the screen. You could have a fade object like so: in create myfade = 0 fadage = -.2 alarm[0] = abs(1 / fadage) in step myfade += fadage alarm 0 event fadage = -fadage alarm[1] = abs(1 / fadage) room_goto(room1) alarm 1 event instance_destroy()
That's the general idea.
|
|
|
Post by JLaCroix on Mar 30, 2004 17:15:59 GMT -5
|
|
|
Post by IsmAvatar on Mar 30, 2004 17:41:21 GMT -5
Unless your dialogue boxes use some form of show_message (etc) then no, exclusive graphics mode will not disable them.
And yes, the user will gladly share his method with you if you promise to give him credit. PM me and i'll tell you his username and the method.
|
|
|
Post by Jlacroix on Mar 30, 2004 18:16:20 GMT -5
I can't private message I'm at work, can you email me <Email Address Removed>
|
|
|
Post by IsmAvatar on Mar 30, 2004 20:27:07 GMT -5
I have emailed you.
|
|
|
Post by jlacroix on Mar 31, 2004 9:18:22 GMT -5
Thank you!!!
My Outlook Express wouldn't let me reply so I wanted to thank you here.
Thanks again!
|
|