If you want specifically to use the Boolean Function, Another option is that you could make a null object called "Day_Night_Toggle" and assign it a Boolean instance Variable that you call when you want in the Event sheet..or just assign the Variable to an existing object in the layer you want to toggle
Null objects are common usage in Games Design.
Null object can be a small invisible or Transparent Sprite created the usual way and has the added benefits of being an entity that you can easily access with other function calls..or implement other EFFECTS to like WEBGL
Often I find Simple Color Overlays are good for Day/Night Transitions..
and also allow lighting FX mystazsea2013-07-23 10:15:04
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)