Terrax Lighting system

● ARCHIVED · READ-ONLY
Started by Terrax 1467 posts Page 2 of 74 View original ↗
  1. Pern said:
    Hi Terrax. For some reason I just can't get the plugin to work. When I use the demo it's just fine, the lighting works just as intended. If I recreate exactly the same thing in my maps nothing changes. I have the Kaus's mapping plugin and did as you suggested by adding the line of code and placing your lighting plug in above Kaus's to have it compatible. Maybe I'm missing something simple or just not doing it correctly? I'll keep trying to find what I'm missing here. Sorry to bother, thanks if you have any insight :]

    Edit: The ring of vision around the character appears, so that's working. It's dark around them and I can adjust that. But the torches aren't lighting up like in the demo.
    The only thing you should be missing then is the 'Light 150 #FFFFFF' in the note-field of the torches
  2. Nice work, but how do I activate it manually? Type I go into a cave and use or caught some torch and the effect appears.
  3. thx for lightning plugin, terrax :D

    really waiting this for my horror game.

    put this plugin above galv layers graphic is okay (if you want used dust effect or parallax map)
  4. New version (1.0.2) now available

    http://mvplugins.com/plugin/Terrax/Terrax%20Lighting%20System

    Added :

    You can create a completely dark dungeon by putting in a lightsource with radius 0

    You can alter the lightcolor of the player with the script command : Light radius 100 #FFFFFF  (100=radius, #FFFFFF=lightcolor)

    Added new rooms to the demo to show the effects and how to code them.

    I'd like to thank you all for the positive feedback and nice ideas, keep it up!

    Terrax
  5. Terrax said:
    New version (1.0.2) now available

    http://mvplugins.com/plugin/Terrax/Terrax%20Lighting%20System

    Added :

    You can create a completely dark dungeon by putting in a lightsource with radius 0

    You can alter the lightcolor of the player with the script command : Light radius 100 #FFFFFF  (100=radius, #FFFFFF=lightcolor)

    Added new rooms to the demo to show the effects and how to code them.

    I'd like to thank you all for the positive feedback and nice ideas, keep it up!

    Terrax
    Enabling effect on the hero by event?
  6. Would you be willing to allow for a light source to be initially OFF and then turned ON at a later time? Rather than all light always being on?

    Thanks for taking the time to write this btw. It is light weight and simple to use. ;)

    edit:

    Or possibly just change the light radius in real time like the player... So it can be set ZERO.
  7. I've done everything in the help file but I can't make a light, can someone tell me more in detail the process please ?
  8. Hmm it still seems to be messing with Kaus's. I've done as you suggested. It only seems to work when I disable Kaus's plugin but then my parallax layer is gone. It's like the parallax layer is overlapping the lighting and masking it, even with the added line in the overlay plugin.
  9. Roguedeus said:
    Would you be willing to allow for a light source to be initially OFF and then turned ON at a later time? Rather than all light always being on?

    Thanks for taking the time to write this btw. It is light weight and simple to use. ;)

    edit:

    Or possibly just change the light radius in real time like the player... So it can be set ZERO.
    Nice idea, i will take a look
  10. Terrax said:
    The credits alone will do
    Ok, I will for sure give you a free copy as that's the right thing to do, but that is if I can get my commercial idea off the ground. XD
  11. I don't mean to be a bother, but is the plugin command for player lighting supposed to be able to reduce light as well as increase light, in real time? Or only reduce on a map transition? Because currently, I can increase the player light but it wont decrease after I do so, until I transition maps.

    edit:

    Even then, it seems intermittent or not to work at all. Once player light radius  increases, it's a pain to decrease it.
  12. Roguedeus said:
    I don't mean to be a bother, but is the plugin command for player lighting supposed to be able to reduce light as well as increase light, in real time? Or only reduce on a map transition? Because currently, I can increase the player light but it wont decrease after I do so, until I transition maps.

    edit:

    Even then, it seems intermittent or not to work at all. Once player light radius  increases, it's a pain to decrease it.
    I can't reproduce that error, but it think one of your scripts is running in parallel and keeps setting the radius over and over again.
  13. New version (1.0.3) now available

    http://mvplugins.com/plugin/Terrax/Terrax%20Lighting%20System

    Added :

    You can turn on and off lightsources by using switches

    To turn on lightsources in the game, do the following, give the lightsource the normal def :  Light 250 #FFFFFF and an extra number  so it becomes

    'Light 250 #FFFFFF 1' , the 1 indicates it will turn on when switch 0001 turns on,and off when it turns off.. see the demo for an example

    Terrax
  14. Terrax said:
    I can't reproduce that error, but it think one of your scripts is running in parallel and keeps setting the radius over and over again.
    I don't have a parallel processes assigning light.

    I'll make up a demo to verify it. Thanks for checking. ;)

    Terrax said:
    New version (1.0.3) now available

    http://mvplugins.com/plugin/Terrax/Terrax%20Lighting%20System

    Added :

    You can turn on and off lightsources by using switches

    To turn on lightsources in the game, do the following, give the lightsource the normal def :  Light 250 #FFFFFF and an extra number  so it becomes

    'Light 250 #FFFFFF 1' , the 1 indicates it will turn on when switch 0001 turns on,and off when it turns off.. see the demo for an example

    Terrax
    Ummm, This may appear ungrateful, and I totally understand if you chose not to change it, but this will lead to some rather wasteful use of GameSwitches.

    Especially when you have a single map full of unlit lamps, that get lit as the player goes deeper inside... Repeated over several maps, that can add up to dozens or even hundreds of switches that are consumed for nothing more than making sure a light remains lit.

    Is it at all possible to bind the note to an event page? Rather than the event itself? (Just a suggestion)

    Again, thanks for your time!
  15. Awesome und simple to use plugin, thanks!
  16. Terrax said:
    New version (1.0.3) now available

    http://mvplugins.com/plugin/Terrax/Terrax%20Lighting%20System

    Added :

    You can turn on and off lightsources by using switches

    To turn on lightsources in the game, do the following, give the lightsource the normal def :  Light 250 #FFFFFF and an extra number  so it becomes

    'Light 250 #FFFFFF 1' , the 1 indicates it will turn on when switch 0001 turns on,and off when it turns off.. see the demo for an example

    Terrax
    I actually just wanted to ask for this, looked through the comments and saw you updated it (didnt refresh it for hours), thank you!!

    Thats what I needed :D
  17. > Especially when you have a single map full of unlit lamps, that get lit as the player goes deeper inside... Repeated over several maps, that can add > up to dozens or even hundreds of switches that are consumed for nothing more than making sure a light remains lit.

    You have a point there.. changing it to an internal light array as we speak.

    Terrax
  18. Any thoughts on adding moving light sources, similar to the player? (An npc walking with a lamp for instance?)

    The plugin is great without it, but this would just add an extra layer of options
  19. It would be interesting to add switch local. The way it is gets tricky to use one switch for each lighting. However, great job, congratulations.
  20. option turn on/off light with switch, great Terrax! :D

    it is possible to give the light blinking or flickering? for horror game is good option for build atmosphere.