Author Topic: "Simple" Lighting System  (Read 1452 times)

0 Members and 1 Guest are viewing this topic.
Mr_Wiggles Male
****
Rep: +23/-21
Offline Offline
Level 54 (89%)
"Simple" Lighting System
« on: December 12, 2009, 10:25:31 PM »

  • OK, i see that a lot of people are asking about this on nearly every form alive.
    I even wanted to learn how to do Light effects for a Characters Flash light or a lantern.
    So i decided to try it out and make an event system that does such a thing.
    Every thing that is needed to do such a task is enclosed in the demo, along with a few exsamples on how to use the flash light:

    use by an item
    use by a button
    use by a switch

    There are also detailed comments on why i did this or that to help explain what i was thinking.

    Whats being used: "These can be changed to what ever you want them to be"

    - Switches -
    1 = Flash light                   - for use with button togle and Item
    2 = Flash light button on     - for Button comon event to be Parallel

    - Variables -
    1 = Screen X - for X placement of Light Picture
    2 = Screen Y - for Y placement of Light Picture

    - Commons -
    1 = Flash Light
    2 = Toggle on and off
    3 = Button Pressing


    NOTE: This is realy basic, it works yes but its not like true light... it will pass through walls and objects, and does not cast any shadows.




    Post your questions/ comments bellow.
    « Last Edit: December 12, 2009, 11:38:39 PM by Mr_Wiggles »
    Outbreak: First Blood

    Progress: [=                    ]  9%
    Demo:     [==                  ] 13%
    stripe103 Male
    ***
    Rep: +3/-5
    Offline Offline
    Level 58 (68%)
    It's human to misdo
    Re: "Simple" Lighting System
    « Reply #1 on: December 13, 2009, 01:44:56 PM »

  • This was really good. I'm going to use this in my game.
    Mr_Wiggles Male
    ****
    Rep: +23/-21
    Offline Offline
    Level 54 (89%)
    Re: "Simple" Lighting System
    « Reply #2 on: December 13, 2009, 10:23:04 PM »

  • @stripe103 -
    Glad you like it, im useing it as well for my zombie game, im hopeing to have a demo soon....
    Outbreak: First Blood

    Progress: [=                    ]  9%
    Demo:     [==                  ] 13%
    gameface101
    ***
    Rep: +243/-1308
    Offline Offline
    Level 56 (02%)
    less talk, more action
    Re: "Simple" Lighting System
    « Reply #3 on: December 14, 2009, 12:17:37 AM »

  • @mr_wiggles - simple and helpful = good job

    can't wait to see this zombie shooter in action ^,^

    ~=[G@/\/\eF@Ce101]=~
    Sashikinaroji Male
    ***
    Rep: +7/-12
    Offline Offline
    Level 53 (94%)
    Re: "Simple" Lighting System
    « Reply #4 on: December 21, 2009, 11:54:01 PM »

  • Well, now all that remains is to make this something that runs out after a certain amount of time (which, I assume would be very easy) and then we have a special item that you need to stock up on to use (like batteries, or latern oil or somthing) that you use to make it keep on working!


    EDITed in response to below post: Well, I would have figured it out eventually...

    -_-

    I feel stupid.
    « Last Edit: December 22, 2009, 12:08:48 AM by Sashikinaroji »

    Demo [===             ] 27%
    Game [=                 ] 4%
    Mr_Wiggles Male
    ****
    Rep: +23/-21
    Offline Offline
    Level 54 (89%)
    Re: "Simple" Lighting System
    « Reply #5 on: December 21, 2009, 11:58:50 PM »

  • that wound be that hard make a common event that checks for "batteries" and then make a "wait" for so long then remove one batteries and then when no more batteries then the light gets turned off by the switch its turned on by...

    i hope that wasn't too much to be explained.... ;)
    Outbreak: First Blood

    Progress: [=                    ]  9%
    Demo:     [==                  ] 13%
    stripe103 Male
    ***
    Rep: +3/-5
    Offline Offline
    Level 58 (68%)
    It's human to misdo
    Re: "Simple" Lighting System
    « Reply #6 on: December 22, 2009, 02:36:53 AM »

  • You can do it!
    Mr_Wiggles Male
    ****
    Rep: +23/-21
    Offline Offline
    Level 54 (89%)
    Re: "Simple" Lighting System
    « Reply #7 on: December 22, 2009, 03:19:26 AM »

  • @ Sashikinaroji - your not stupid... and if you have any more questions feel free to ask them... :)
    Outbreak: First Blood

    Progress: [=                    ]  9%
    Demo:     [==                  ] 13%
     

    hi

    RMRK.net Theme Super Ultra Mega Beta

    Follow RMRK on Twitter Ask RMRK Questions on Formspring Get RMRK Updates via Windows Live

    Page created in 0.168 seconds with 20 queries.