Terrax Lighting system

● ARCHIVED · READ-ONLY
Started by Terrax 1467 posts Page 27 of 74 View original ↗
  1. Hi to all, is it possible to create events according to the hours of the day? Like opening some shops..


    Thanks.
  2. Hello, I have some problems, the plugin works, but in a note map when i write "DayNight hour 16 30" Doesn't works , Only work "DayNight" help
  3. Question!

    Is there a way to make it so that when the events look left, and look right, the flashlight follows the direction they're looking? I've tried everything, and while it seems to move with the character, it doesn't appear to be able to notice when they check their surroundings.


    Thanks~
  4. New version (1.2.8) now available


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


    Added :


    1) Fix for NPC with flashlight, the flashlight now moves even if the NPC is only changing direction.


    2) Improved the tile-block option so it no longer blocks the intire square, but a smaller or larger part can be blocked with a square of oval.

    DarkSearinox92 said:
    Terrax where are you? We need support... i found that if you shake the screen, even if you add more resolution, the screen shake and you can see the borders with no Light.... Is there a solution?

    I can't seem to reproduce the error, shaking the screen looks fine if i use it in my demo. Do you use a big map or is paralax on maybe, i need to be able to reproduce the bug to fix it.

    Izzybelle said:
    Question!

    Is there a way to make it so that when the events look left, and look right, the flashlight follows the direction they're looking? I've tried everything, and while it seems to move with the character, it doesn't appear to be able to notice when they check their surroundings.


    Thanks~

    Fixed it

    ShidoBear said:
    Hello, I have some problems, the plugin works, but in a note map when i write "DayNight hour 16 30" Doesn't works , Only work "DayNight" help

    To change the hours of the day you have to create an event that calles a plugin-command like this: "Plugin Command : Daynight hour 16 30",


    you can find it in the last tab of the events pages. You cannot use the note-tag to set the hour, the note-tag is just for activating the daynight cycle on a map.

    raf said:
    Hi to all, is it possible to create events according to the hours of the day? Like opening some shops..


    Thanks.

    Yes, the first step is to activate a global variable you can read with a script, this is done in the options of the script. Use the setting "DayNight hour" and set it to 10 (for example). This will update game variable 10 with the current time. Then you can read it in a script. There is an example of this in the demo if you take the right portal.

    Yroshima said:
    First of All, thank you so much for this plugin Terrax, it will help me a lot in my project.


    However, I have 2 doubt, the first one is about the light player radius, where I put he command to it works?


    And the second is how I change the lightcolor?

    Create an event and put in the Plugin-command : Light radius 100 #FFFFFF 


    100 changes the player-radius to 100


    #FFFFFF is the color of the players light.

    firestalker said:
    I love this plugin and I use it for the majority of my game...  There is only one thing I would love to see added to it.  The ability to recognize transparency.  Right now when you use the TileBlock 1 On command the light is blocked on that tile completely...  Even it the item is nothing more than a pole.  I have a more than a few pillars on some of my maps, when I mark them with the light blocking number [1 in my case] the pillar is blocked but so is the ground behind it.  I would be nice if the tile block could recognize the alpha channel of the tile and only block the pixels that have something on them.  It would allow the creator to make more dynamic looking maps.

    I cannot read the tiles alpha channel, but i added an option to manualy set the shape (square or circle) and dimensions of the blocked area. In other words, you would can provide the x1,y1,x2,y2 of the area that has to be blocked (check out the demo for examples)
  5. Thank you, Terrax!

    Changing the plugin so the events can point the flashlight in the direction they're looking, saved me countless hours of playing with events, and the same for tricks to make it work.

    Thank you so much, a thousand times thank you!
  6. What is with my problem? as described above.


    please help
  7. Platsch said:
    What is with my problem? as described above.


    please help

    Your question is a litte hard to understand, but you can alway deactivate the light right before you call the 'game over' with


    plugin command : Light deactivate


    then you can activate it again when you start a game with


    plugin command : Light activate.
  8. My computer thinks that there's malware in the download, any help?
  9. mayorswaim said:
    My computer thinks that there's malware in the download, any help?



    The download just contains the game (js and data directory) for the demo and the script. Since everything is made in java-script your malware detector probably flags it as something that could contain mallware. I know some games made with RPG maker are realy realy awful, but i would not concider them malicious.


    Terrax
  10. Sorry to bother you, Terrax. Even more-so should this question have already been answered once before.

    When the light is attached to an event note, and I use that event to also hold an item that the player can collect, the light turns down when the player tries to collect that item. I have attempted direction fix, and putting that the light is facing left in the note. 

    Included is a screenshot of the above error.

    Test.png
  11. When the light is attached to an event note, and I use that event to also hold an item that the player can collect, the light turns down when the player tries to collect that item. I have attempted direction fix, and putting that the light is facing left in the note. 



    I might have a sollution, but want to know if that works for you. The direction of the flashlight will only be changed if the NPC/event moves (from one square to another) at least once. If the NPC stays fixed in the same position, the flashlight will keep pointing in the position you set it to.


    Will that work?
  12. Terrax said:
    I might have a sollution, but want to know if that works for you. The direction of the flashlight will only be changed if the NPC/event moves (from one square to another) at least once. If the NPC stays fixed in the same position, the flashlight will keep pointing in the position you set it to.


    Will that work?


    The NPC in question never moved. It is the lights to the vehicle. As seen below. When the player talks to the event tile that has the light on it, it moves. (The player is collecting their bags)
     

    Picture 1.png

    Picture 2.png
  13. Izzybelle said:
    The NPC in question never moved. It is the lights to the vehicle. As seen below. When the player talks to the event tile that has the light on it, it moves. (The player is collecting their bags)
     

    I updated the plugin (didn't increase the version number, just a little quick fix)


    Download it again and see if it fixes the problems.
  14. Terrax said:
    I updated the plugin (didn't increase the version number, just a little quick fix)


    Download it again and see if it fixes the problems.

    Yup, the fix worked.
    Thank you, Terrax.
     
  15. Sorry, for bother you again Terrax


    I forgot to mention another problem. Everytime when I create a torch or something like that all the rest of the map get dark. Why it happens? 


    Regarding to the player radius plugin comand, it is correct what I did?

    001.jpg

    radius.jpg
  16. mayorswaim said:
    My computer thinks that there's malware in the download, any help?



    Most PCs see JavaScript files (.js files) as malware, as JavaScript isn't something that is generally downloaded and is sometimes used as a way to deliver malware, so most PCs and antimalware will just blanket all .js files as bad.
  17. The light no longer follows the character.  it remains in one place.


    a few updates ago, no problems.







    the problem was beginning in the first update 1.2.8, followed the light not equal. slowly afterwards.








    bug.png



     





     








     













     
  18. Yroshima said:
    Sorry, for bother you again Terrax


    I forgot to mention another problem. Everytime when I create a torch or something like that all the rest of the map get dark. Why it happens? 


    Regarding to the player radius plugin comand, it is correct what I did?

    It is correct behavior for the map to get dark.. you cannot create light without darkness ;)


    If you want the rest of the map to be less dark, put the following command in an event and let it execute once :


    Plugin command : Tint set #333333  ( try diffent colors for different kinds of light/shade)


    To change the player radius use : Plugin command : Light radius 100 #FFFFFF

    Platsch said:
    The light no longer follows the character.  it remains in one place.


    a few updates ago, no problems.







    the problem was beginning in the first update 1.2.8, followed the light not equal. slowly afterwards.

    Try downloading the plugin again, i made a small patch yesterday that could solve the problem (didn't upgrade the version number).


    Let me know if that helps.
  19. i have already the second update from 1.2.8. (small patch) that is the problem. nothing


    ( the problem was beginning in the first update 1.2.8, followed the light not equal. slowly afterwards. )
  20. Platsch said:
    i have already the second update from 1.2.8. (small patch) that is the problem. nothing


    ( the problem was beginning in the first update 1.2.8, followed the light not equal. slowly afterwards. )

    I didn't change much is the 1.2.8 patch, i just added some changes to directions of flashlights. Everything seems to work fine in the demo,


    are you sure you didn't install another plugin that overwrites the same script. You can test this by disabling other scripts and see if the problem remains.


    If you find a plugin that causes a problem, i can look for a fix.


    Terrax