Khas Lighting [Flashlight]

Discussion in 'RGSSx Script Support' started by Name, Oct 26, 2016.

  1. Name

    Name Veteran Veteran

    Messages:
    131
    Likes Received:
    190
    Location:
    Wonderland
    First Language:
    English
    Primarily Uses:
    RMMV
    Okay, I am using Khas awesome lighting script, and the flashlight will not turn off! I used the off switch and even removed the item that was using it and the light still remains on! Can anyone help me with this problem?


    (The flashlight is an item and is ran by a common event with the light "switch")
     
    #1
  2. GGZiron

    GGZiron Veteran Veteran

    Messages:
    75
    Likes Received:
    25
    Location:
    Bulgaria
    First Language:
    Bulgarian
    Primarily Uses:
    RMVXA
    Is your flash light activating code looking like that?

    Code:
    l = $game_map.lantern
    l.change_owner($game_player)
    h = "light"
    l.set_graphic(h)
    l.set_opacity(255,1)
    l.show
    I suppose yes, because torch objects turn off as soon as the event page that contain the note tag is off.


    The above lantern I would deactivate with that:

    Code:
    l = $game_map.lantern
    l.hide
     
    Last edited by a moderator: Nov 10, 2016
    #2
  3. Ansilvund216

    Ansilvund216 Veteran Veteran

    Messages:
    50
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMVXA
    Hey guys how do you change the flashlight range I know its only 150x150 but is there a way to change this?
     
    #3
  4. GGZiron

    GGZiron Veteran Veteran

    Messages:
    75
    Likes Received:
    25
    Location:
    Bulgaria
    First Language:
    Bulgarian
    Primarily Uses:
    RMVXA
    You have to rescale the latern pictures to be larger, like 200x200. That is the maximum size that Khas recomends in his script.
     
    #4
  5. Ansilvund216

    Ansilvund216 Veteran Veteran

    Messages:
    50
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMVXA
    Thanks is it the same with flashlight?
     
    #5
  6. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,766
    Likes Received:
    10,573
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #6

Share This Page