A downloadable SGB Plugin

Download NowName your own price

Real-Time Lighting System

Changelog: 
v0.7.0 Initial release
v0.7.1 Fixed a bug that caused the light system to sometimes not work in battle.
Dependencies
- CoreGonz Plugin
- SGB project exported to Unity 2019 or above

Have you ever wanted to use real-time lighting in Smile Game Builder to be able to enrich your games with beautiful visual effects by adding a unique touch to the days in your game?, With this plugin you can do it!


Description

The RTLS plugin allows you to use a day and night system in SGB with the following features:

  • Day and night with customizable real-time lighting.
  • Automated time system (Days, Hours, etc.).
  • Customizable HUD that reacts to day and night.
  • Skybox System (Beta).
  • Ambient sound system (Beta).
  • Light prefab that turns on when you activate a switch.
  • Advanced section to personalize your days even more!


How to use

  1. First, you need to have the CoreGonz plugin installed in your project.
  2. Download and import the file "RTLS Plugin.unitypackage" to your project.
  3. To configure the plugin, you must go to the following SGB project path: "Assets\Resources\JagonzPlugins\Plugins\" and click on RTLS (Plugin)
  4. And that's it!


Important Settings

This config section it's important for the proper functioning of the plugin.


Configuring variables and switches in SGB and Unity

Variables


Switches


In-plugin mapping

This section of the plugin represents the variables and switches in SGB, if you want to have control over this plugin from SGB you must assign the switches and variables accordingly. Example: (Indoors SGB = 991) represents the switch #991 in your SGB Database, each time you activate switch #991 in SGB the plugin will change the lighting to "Indoors" and stop the ambient sound.


Custom settings

Main settings


  • Enable Plugin: Uncheck to disable the plugin completely.
  • Unity Handles Time: Enable automated time system, if you disable this option you must make your own time system in SGB.
  • Time Runs In Battle: Enabling this option keeps time running even in battle.
  • Faster Time Multiplier: Multiply the normal time that is activated when you turn on the "Faster Time" switch in SGB by this value.
  • Day Length: Duration in real time minutes of a day in your game.


Lighting settings

  • Configure as you want the light settings for each phase of the day



Ambient sound

  • Day sound: You can grab and drop any audio in this slot to serve as ambient sound during the day.
  • Night sound: You can grab and drop any audio in this slot to serve as ambient sound during the night.
  • Ambient Volume: The volume of the ambient sound (Other than the volume in SGB).


Skybox settings

  • Use Skybox System: If you deactivate this option, the Skybox will remain static.
  • Day - Nightfall - Nigh Skybox: You can drag a custom image to these slots for each phase of the day.


HUD settings

  • Disable HUD: This option is tied to the "Disable Plugin HUD" switch in SGB and cannot be changed in the editor.
  • Show Time - Day - State: You can hide some part of the HUD in the editor.
  • Canvas HUD: The canvas is assigned automatically, leave this slot blank.
  • Day - Night Image: You can drag a custom image for the sun and moon here.


Advanced settings


  • ADD TIME: The correct way to add time to a day is to use the Time To Add variable and activate the Add Time Switch assigned in this section in SGB.
  • Day - Night Start point: Assign the time at which day and night begin.
  • Light phases range: In this section you can define when a respective lighting starts to be used, with this condition: Day Start < Nightfall start < Night Start, (Fullnight can be less than or greater than Night Start but must always be less than Day Start).


Using a smart light

The smart light is any light to which the script "Smart Light" is attached, which is located in the folder "Assets\Resources\JagonzPlugins\PluginsFiles\RTLS\Scripts"

You also have a "Smart Light" Prefab in the RTLS folder under "PluginFiles", you can make the light turn on and off according to the phase of the day, if you want to use your own switch in SGB to turn a light on or off you can use the "Use Custom Switch" option and assign an SGB switch.


Notes

* If you find any bug, do not hesitate to let me know!

* This plugin is not paid, although I will appreciate any kind of support!

* This plugin only requires giving credits to me! (Jagonz). 

* This plugin needs the "CoreGonz" plugin installed.


Download

Download NowName your own price

Click download now to get access to the following files:

RTLS plugin.unitypackage 8 MB

Development log

Leave a comment

Log in with itch.io to leave a comment.