|
| 22 Jun 2014 11:04 AM |
I have TDS game currently in development. However, I want it so that when a player is on the outside of a building, the inside is dark and there is no light. However, when they enter, it lightens up for the player.
While typing this... I just figured something. Could I use a OnTouch function in a script to switch back and forth between lighting? If anyone has suggestions, please reply and thank you. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 11:24 AM |
I've somewhat figured it out!
I made a two bricks named: Inside and Outside (To be convenient) and another tall brick called Light (IDK why, but it is tall because it can block off the light from outside)
I would place the "Inside" brick inside of the building and the "Outside" brick outside...
I scripted it so that when the player touches the inside brick, it turns the "Light's" transparency to 1 and vice-versa when they touch the outside brick. And since it is a TDS camera, you can't see the "Light" brick that happens to be 50+ studs tall... (It would be an eyesore) |
|
|
| Report Abuse |
|
|
69scott69
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6136 |
|
|
| 22 Jun 2014 12:54 PM |
In Edit mode there are 2 properties of 'Lighting' called Ambient and OutdoorAmbient. Ambient is for any area that is in a building or cave, but the walls have to be about 10 studs thick so the outdoor lighting doesn't 'bleed' in.
Click on that property in the Properties window and a colour wheel/shade bar menu pops up. Move the gray scale slider to white (for brighter OutdoorAmbient) or black (for darker Ambient). |
|
|
| Report Abuse |
|
|
69scott69
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6136 |
|
|
| 22 Jun 2014 12:55 PM |
Oh crud, I misread that. Sorry...
Either that or you could script it to change the Ambient lighting settings with the Ontouch function. |
|
|
| Report Abuse |
|
|