Autor Thema: Help with dark/light rooms.  (Gelesen 2645 mal)

EAD

  • kleiner Tentakelsaugknopf
  • **
  • Beiträge: 27
  • Geschlecht: Männlich
    • Profil anzeigen
Help with dark/light rooms.
« am: 22. Mai 2009, 14:30:50 »
At episode 67, you have used the magnetron in the police Department to turn off the light, so that the rooms are in darkness. Now my questions are:

1. Are the rooms with the lights on, and when they are in darkness, seperate rooms, or did you changed the screens?

2. If you have change the screen, did you used something like changeScreen, or as an appearing object(object[5].Visible = true;)?

NsMn

  • Midlife Crisis Tentakel
  • ******
  • Beiträge: 1646
  • Geschlecht: Männlich
  • überzeugter Paint-Nutzer
    • ICQ Messenger - 404385098
    • Profil anzeigen
    • E-Mail
Re: Help with dark/light rooms.
« Antwort #1 am: 22. Mai 2009, 14:37:27 »
Edison Interacive probably used the Flashlight-Plugin for this. Just search for it in the AGS-Forums or download the Manison-starterpack.

KhrisMUC

  • Moderator
  • volljähriger Tentakel
  • *****
  • Beiträge: 989
    • Profil anzeigen
Re: Help with dark/light rooms.
« Antwort #2 am: 25. Mai 2009, 20:17:12 »
The easiest way of doing this is using a fullscreen, black, non-clickable GUI with a .Transparency setting around 60.
It'll work in every room and will darken everything alike.
It doesn't have to be black; you can experiment with shades of dark purple or dark blue.

Edison Interactive

  • kleiner Tentakel
  • ***
  • Beiträge: 103
    • Profil anzeigen
Re: Help with dark/light rooms.
« Antwort #3 am: 25. Mai 2009, 21:44:40 »
We used seperate backgrounds (SetBackgroundFrame(...)), we also changed some object graphics (SetObjectGraphic(...)) but mostly made them just darker by enabling regions with specific Light Levels (EnableRegion(...))

But the flashlight-plugin is a good solution too, but it looks silly if there are light-effects in the background (same with transparent object in front)


-edit-

If you are going to make seperate screens (we did this for playing Ding in the police department) just use GlobalInts for open doors, wardrobes etc., but it's only recomendet if there are major differences...
« Letzte Änderung: 25. Mai 2009, 21:47:35 von Edison Interactive »