Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Black Screen before ChangeScene()  (Read 3673 times)

0 Members and 1 Guest are viewing this topic.

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Black Screen before ChangeScene()
« on: April 02, 2007, 12:10:27 PM »

Before the call of function of ChangeScene, I want to show a fullscreen window. Then to close him, but so that after closing there was a black screen, instead of screen of the current scene. How this to do?

var Win = Game.LoadWindow("name");

Win.Center();
Win.GoSystemExclusive();

Game.UnloadObject(Win);

//?????????????????

Game.ChangeScene("name");
Logged

mRax

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 55
    • View Profile
Re: Black Screen before ChangeScene()
« Reply #1 on: April 02, 2007, 12:28:34 PM »

If I understand correctly, you can do next

Code: Text
  1. var Win = Game.LoadWindow("name");
  2.  
  3. Win.Center();
  4. Win.GoSystemExclusive();
  5.  
  6. Scene.FadeOut(0,0,0,0,255);     // Scene become black at the moment
  7.  
  8. Game.UnloadObject(Win);
  9.  
  10. Game.ChangeScene("name");
Logged

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Black Screen before ChangeScene()
« Reply #2 on: April 02, 2007, 12:31:43 PM »

But then at me the new scene will be black.
Logged

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Black Screen before ChangeScene()
« Reply #3 on: April 02, 2007, 12:42:54 PM »

There is another problem. At me on the screen of the scene there always is other interface window which will not become black by Scene.FadeOut(0,0,0,0,255). A black screen is necessary fully to me.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Black Screen before ChangeScene()
« Reply #4 on: April 02, 2007, 06:05:32 PM »

There is another problem. At me on the screen of the scene there always is other interface window which will not become black by Scene.FadeOut(0,0,0,0,255). A black screen is necessary fully to me.
Scene.FadeOut() fades the scene (including in-game windows). Game.FadeOut fades everything.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Black Screen before ChangeScene()
« Reply #5 on: April 03, 2007, 08:48:16 AM »

thanks
Logged
 

Page created in 0.023 seconds with 33 queries.