Flashlight

  • #1, by LupaShivaMonday, 16. December 2013, 20:15 11 years ago
    Is there any way to do a Flashlight effect on the mouse, in first person view? For example in the scene only would appear where the mouse is.

    Thank you

    Forum Fan

    134 Posts


  • #2, by SimonSTuesday, 17. December 2013, 10:57 11 years ago
    Complicated way, you could use a half-transparent PNG, set as mouse cursor, that is double times as big as the scene. The image is black, and only the middle is transparent. You can also scale the image up if you're worried about memory.

    Thread Captain

    1580 Posts

  • #3, by NigecTuesday, 17. December 2013, 11:42 11 years ago
    I thought there was a script on here somewhere? might be wrong :/
    but Simon's solution works well, I've used it before but Flash

    Key Killer

    627 Posts

  • #4, by afrlmeTuesday, 17. December 2013, 14:14 11 years ago
    I thought there was a script on here somewhere? might be wrong :/
    but Simon's solution works well, I've used it before but Flash


    I've not seen a script for a flashlight on here anywhere & I don't think it would be possible anyway unless we can draw masks/shapes with lua & define the brightness of the masked area etc. Ideally this would be much simpler to do in a 3D game engine where you have direct control over the lighting & light sources of each scene.

    @Simon: I would call that the simple method... so simple in fact that I would probably never have considered it razz

    Imperator

    7278 Posts

  • #5, by LupaShivaTuesday, 17. December 2013, 15:31 11 years ago
    Thank you all for the awsners, but is there any possibility that someone exaplin that a little better, im not quite understanding what you mean, sorry and thank you again for the replies.

    Forum Fan

    134 Posts

  • #6, by afrlmeTuesday, 17. December 2013, 17:08 11 years ago
    hmm I just tried out Simon's method but it would only let me add an image up to certain size & I couldn't seem to use lua to scale up the cursors either... so er sorry I'm not sure what to suggest for this.

    Imperator

    7278 Posts

  • #7, by LupaShivaTuesday, 17. December 2013, 19:00 11 years ago
    I actually managed to do it with the simon´s way, was a lot more simple than i thought,i didnt doubled the image size, but increased the minimum to fit the screen and it worked. Thank you all

    Forum Fan

    134 Posts

  • #8, by afrlmeTuesday, 17. December 2013, 19:19 11 years ago
    nice one smile

    the minimum?

    Imperator

    7278 Posts

  • #9, by LupaShivaTuesday, 17. December 2013, 20:10 11 years ago
    LOL actually i did more than double =P for a 1024x768 i did a 2126x1700, but it works perfectly =) Thank you all

    Forum Fan

    134 Posts

  • #10, by AlzasTuesday, 15. July 2014, 18:50 10 years ago
    Hey all, quick question on that topic.

    I created a cursor with a black semitransparent image with a transparent white circle in the middle, giving the effect of the flashlight, as suggested. Everything cool for now. The center of the cursor is of course the center of the circle. Problem is, when the cursor hovers over an object, the action text appears on the far right of the screen. I am guessing this is due to the large image of the cursor. Any ideas as to how to make the action text appear just above the curcor center (just like when we have a normal cursor)?

    Thanks.

    Newbie

    21 Posts

  • #11, by AlzasThursday, 24. July 2014, 10:37 10 years ago
    Any suggestions concerning this issue?

    Newbie

    21 Posts