Newbie Help - Light Switch!

● ARCHIVED · READ-ONLY
Started by chestnutrose 5 posts View original ↗
  1. There's probably a really easy solution to this but, basically I used a translucent Picture to create a 'Dark room' illusion for one map. (It's a light switch, using self switches)
    Problem is, the picture naturally stays even after I teleport. If I cleared the Picture along with the Teleport event, if I come back to the room, the room would now have its lights on. Is there a way to create a dark room and leave it dark even when I exit the map and come back to it later?
  2. Just Put a Erase Picture command in the transfer player event. 

    So for a typical transfer player event:

    @>Play SE: 'Move', 80, 100

    @>Transfer Player:[001:MAP001](001,002)

    @>Erase Picture:<the corresponding number of the picture you want to erase>

    If you still have questions, feel free to ask. Have a nice day.

    EDIT: Oops. I haven't read the post carefully. Geez. Needle is right. Put a switch for Lights On or Lights off.
  3. Even easier, just make an event with your translucent picture, and give it a condition that a certain switch has to be on (not a self-switch). Call it "Lights Off" or something of that nature. Have the actual in-game light switch turn the "Lights Off" game switch on and off.

    When Lights Off is on, the condition on the event will pass and the translucent picture will show up: The lights are off, the picture makes it look dark.

    When Lights Off is off, the condition will fail and the translucent picture should go away: The lights are on, the picture disappears, giving you natural light.
  4. I did a little test to see how to do this the best way with events only; it turns out it's a little more involved than you might at first think. The following method remembers the light setting and fades the light / out when you hit the switch:

    First is the light switch, which the player interacts with to turn on/off the light.

    Screen%20Shot%202014-05-21%20at%2014.37.50.png

    Then there's the light toggle process; this is a parallell process event that shows the dark overlay if the light switch is turned off:

    Screen%20Shot%202014-05-21%20at%2014.42.42.png

    And finally, the event that transfers the player out of the map. Here we fade out the overlay dark picture as we're also showing the transfer effect; this is important, because if we don't fade out the overlay dark picture, it will instantly vanish when erased, which won't look good.

    Screen%20Shot%202014-05-21%20at%2014.38.57.png

    I hope this is clear enough. Just ask if you've got any questions :)
  5. Thank you all! :) I'll try the solutions out!