Terrax Lighting system

● ARCHIVED · READ-ONLY
Started by Terrax 1467 posts Page 15 of 74 View original ↗
  1. Excellent plugin I menage to make it work somehow.
  2. Vegnarus said:
    Terrax is trying to work out the roof and wall tag idea I originally posted about on a previous page. If he pulls it off, then the next update should probably provide a way for you to solve your light issue Eternal. :)
    Oh, not the ceiling thing, I know he's doing that already. I meant the extra "sphere" of light that always appears around a player or event when they have a flashlight.
  3. EternalShadow said:
    Oh, not the ceiling thing, I know he's doing that already. I meant the extra "sphere" of light that always appears around a player or event when they have a flashlight.
    Oh that's what you meant? I guess he could change the way the light is drawn but then again, in pitch-black situations, the players wouldn't be able to see the characters or the events if that light wasn't in place.
  4. Vegnarus said:
    Oh that's what you meant? I guess he could change the way the light is drawn but then again, in pitch-black situations, the players wouldn't be able to see the characters or the events if that light wasn't in place.
    True, though that sphere should be reducable by quite a bit.


    When you're in a pitch-black situation, the torch can shine a bit of light onto the surroundings, which is what it's already doing. However, it's a little hard to tell as I don't know what part of the sphere is actually directly from the torch and what isn't.


    For a player with a flashlight, it is acceptable to be able to see a bit around themselves, but a lamplight or a carlight wouldn't, given that it is strictly directional. It would be pretty much almost pitch-black for things not directly in the line of the torch (accounting a little for the fact that if you look directly at a light, this causes your pupils to shrink and thereby makes other things seem darker... lol)
  5. Terrax said:
    What did you have in mind ?
    i want to try and use already drawed light mask as tint. and render images of lightsourses into it - not in to black rectangle

    and wanna try to use images as light sources too
  6. @Eternal: For torches you could try a warmer color to differentiate them more easily. It even adds to the atmosphere. As for the directional lights, I was talking more in terms of how it would be in the game but there's still some visibility to the source of the light even if it's strictly directional. It's not that much but it's there. And for games I think that it should definitely be there to show what the light source is but on a smaller scale (smaller bubble) to not have it look out of place while keeping most things in the dark.
  7. New version (1.1.9) now available

    http://mvplugins.com...Lighting System

    Version 1.1.9

    Fixed : Flashlight issues

    Added : You can set the density of the beam.

    Use plugin command 'Flashlight on 8 12 #FFFFFF 4' where

    8 = beam length

    12 = beam width

    #FFFFFF = beam color

    4 = beam density  (make sure the beam density is never bigger then the beam width setting)

    'Flashlight on 8 12 #FFFFFF 11' will give you a very solid beam without softness effect at the edge.

    'Flashlight on 8 12 #FFFFFF 1' will give you a beam with maximum softeness at the edges.

    I've also made a new area that shows work in progress on the tile-block and tile-light script i'm working on, i'm still working on the settings and saves, so its only to show how it works.

    In the demo it blocks light to the roof and the lantern isn't a event but a tile.

    Have a look!
  8. Wow, it works great so far Terrax! I like that you also made a Terrain Tag for automatic lights on certain tiles! There might be some interesting uses for this feature. Nice work!  B)
  9. Reference Error:

    SaveLighting Variable is not defined.

    Settings:

    Player Radius: 200

    Reset Lights: No

    Save Daynighthours: 0

    Save Daynightminutes: 0

    Save Daynightseconds: 0
  10. Hi! Thanks for great plugin!  Im using it in my project and i got some problem. My characters  2 tiles high (like 48x96 px) and when im using flashlight its looks like light projects from the legs. Is it passible to fix? 
  11. lillunatik said:
    Reference Error:

    SaveLighting Variable is not defined.

    Settings:

    Player Radius: 200

    Reset Lights: No

    Save Daynighthours: 0

    Save Daynightminutes: 0

    Save Daynightseconds: 0
    Can you press F8 when the error occures and copy/paste the debug window for me?  That way i can pinpoint the location of the error.

    raven1891 said:
    Hi! Thanks for great plugin!  Im using it in my project and i got some problem. My characters  2 tiles high (like 48x96 px) and when im using flashlight its looks like light projects from the legs. Is it passible to fix? 
    Sure, ill make a setting for it. Is there a plugin your using for 2 tile-characters? maybe i can detect it and do it by default for 2tile characters.
  12. Terrax said:
    Sure, ill make a setting for it. Is there a plugin your using for 2 tile-characters? maybe i can detect it and do it by default for 2tile characters.
    No, im not using any plugin for it.  Just $ before filename with animation.
  13. How to make an item -  jar with firefly bug that will give some light with turn off key bind? Something like flashlight but around hero?
  14. OneManArmy said:
    How to make an item -  jar with firefly bug that will give some light with turn off key bind? Something like flashlight but around hero?
    That would be like a regular torch. There is an example torch in the demo. You can check the demo's files, edit that torch and turn it into a Firefly Jar item that has the same effect.
  15. Sorry for a noob question but how do you open the demo? I have never such need before so I have never open any demos in rmv...
  16. OneManArmy said:
    Sorry for a noob question but how do you open the demo? I have never such need before so I have never open any demos in rmv...
    Create a new game, overwrite the 'data' and 'js' directories from the game you just created, start the new game, and the demo runs.
  17. I have done it but I can't find this flashlight item... not in the demo nor in files. Sorry ...
  18. OneManArmy said:
    I have done it but I can't find this flashlight item... not in the demo nor in files. Sorry ...
    Walk into the tower, cross the room to the next room, then walk into the next room were you find a chest with a torch and flashlight in it.
  19. I have found it but I cant use it, it is not showing up. There is just comment that I have find it and so it I checked inventory and everything and there is nothing...
  20. OneManArmy said:
    I have found it but I cant use it, it is not showing up. There is just comment that I have find it and so it I checked inventory and everything and there is nothing...
    After you open the chest go into your items and it should be there. If you try to use it from the item menu it will let you equip it to a character. Choose Harold and it should be visible.

    Basically, just create a Common Event in your project and name it Firefly Light. Add this plugin command in the common event: Fire radius 100 #FFCC00

    • Fire activates the flicker effect
    • radius 100 is how big the light bubble will be
    • #FFCC00 is the hex code color of the light. It's yellow in this case. 
    Create your Firefly item, make it usable only from the menu, set the scope to none and add the "Firefly Light" Common Event in the effect list. Common Events are in the "Other" tab. Try this and it should work.