![]() ![]() ![]() They can be a positive number (without the + sign), or a negative number. OX and OY are the offset values for X and Y. You may use the command to override the default offset. Therefore, an event can have multiple lights (like a traffic light), and you can switch its pages to change between the lights.Įach light has an offset (usually 0 for both axes). Lights added to events using the method above will remain lit while the page is active. You can create your own lights - there's more detail later. Please note that light names are case sensitive! Lights - Test (use this to test and adjust offset): White, red, green, blue, pink, cyan, yellow, purple Torch, white_torch, red_torch, green_torch, blue_torch, pink_torch, Halogen, tungsten, fluorescent, broken, flashlight X is the light name - the following are available with the plugin: The easiest way to create point lights is to use the command as a comment in any event. Now you will learn how to create point lights! Thus, when switch 2 is ON, the second command above will run and override the previous ambient light value.įinally, you can enable/disable the entire system by using the Lighting ON/OFF plugin command: The command runs only if the switch is ON at that time, regardless of the AutoAmbientLight setting. In order to have the desired effect, you may use the following commands: Of course you could use plugin commands to set the correct lighting, but let's use map commands instead. Additionally, let's say that the switch 2 set to ON whenever it's night during the game. ![]() Now let's say you have a map that the player will visit during two parts of the game: one happens during the day and one happens during the night. If AutoAmbientLight is OFF, the map command will be ignored and the state will be preserved between map changes. If you want to set AutoAmbientLight ON/OFF, please use the following command: However, this command will run only if AutoAmbientLight is enabled (it's enabled by default). Then, whenever the player is transfered to that map, the command will run and change the ambient light to a new state. The most convenient way to change ambient light is to use the map command, as you did when testing the plugin. ![]() If you want a gradual change (like in 2 seconds - 120 frames), you can add the time to the command: This command will change the ambient light instantly. You may use the AmbientLight plugin command, like below: Let's start by setting the ambient light to 50. The state persists when transferring between maps and after saving/loading the game. Then, the system will remain at that state until you use a command to change the ambient light to a new state. Please note that this plugin works like a state machine, that is, there's the ambient light state on the game and it can be set to any number between 0 and 100. If you want to darken the map you will need to set the ambient light's intensity to something between 0 and a 100. Ambient light illuminates the whole screen and its intensity is set to 100 when you start the game. This plugin assumes two sources of lights: ambient light and point lights. Start a new game and transfer the player to that map. Now create a new event and add the command as a comment: Then, add the command to its note:Ĭlick OK to close and save. Open any map on your project, right click it and click on Edit: If you're using the Advanced Fog plugin, place this plugin after it. Then, if you want to create your own lights, place the light images in that folder (more details later). If you're unsure on how to do it, please check the plugin installation tutorial.Īdditionaly, you will need to copy the lights folder to your project's img folder. Just install like any other plugin and make sure it's placed after the required plugins. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |