generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Building Helpers
Home Search
 

Re: Manipulating Dynamic Lighting (Somewhat)

Previous Thread :: Next Thread 
johnspartan117 is not online. johnspartan117
Joined: 01 Jan 2008
Total Posts: 3124
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
johnspartan117 is not online. johnspartan117
Joined: 01 Jan 2008
Total Posts: 3124
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image