1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

GM:S 1.4 Fake Light

Discussion in 'Tutorials' started by NazGhuL, Jun 21, 2016.

Tags:
  1. NazGhuL

    NazGhuL NazTaiL

    Joined:
    Jun 20, 2016
    Posts:
    533
    GM Version: GM:Studio 1.XX
    Target Platform: Windows
    Download: Tuto_fake_light_studio.zip
    Links: N/A

    A GMS2 version, FREE: https://forum.yoyogames.com/index.php?threads/fake-light-iii-gms2.25608/

    Summary:
    This tutorial is a basic one and it DOES NOT HANDLE SHADOWS!!!

    Here is a very simple way to do a FAKE light. Really easy to copy/paste and understand. What I wanted (back in 2011) is to put all my screen black (well not pitch black, but really dark) and simply substract a hole in it where the player stand. Like on NES's Dragon Warrior or SNES's famous Zelda:

    [​IMG]

    Tutorial
    : (Download the zip file above, it contains the gmz project, fully commented)
    You'll learn to do a simple hole:
    [​IMG]

    A gradient hole:
    [​IMG]

    Flashlight style:
    [​IMG]

    And multiple lights:
    [​IMG]

    There is also a room to learn how to use fake light using VIEWS.

    The old topic: Here

    Thousands of downloads and a lot of good comments, thank you, i'm really happy to help you!
    Send me a PM if you got any questions or send me a mail : jonathan.naztail@gmail.com

    For GM 8.1: tuto_fake_light_gm8.zip
    Can't support it well, GM 8.1 is uninstalled... :(
     
    Last edited: Apr 28, 2017
  2. foldupgames

    foldupgames Guest

    I'll have to check that one out - thanks for sharing.
     
  3. Roderick

    Roderick Member

    Joined:
    Jun 22, 2016
    Posts:
    580
    This is wonderful. I have exactly this on my list of things to learn, and stumbling on this tutorial in your sig in another thread was quite fortuitous.

    Thanks!
     
  4. Niels

    Niels Member

    Joined:
    Jun 22, 2016
    Posts:
    828
    does this support colored light?
     
  5. NazGhuL

    NazGhuL NazTaiL

    Joined:
    Jun 20, 2016
    Posts:
    533
    No. Only punching a Hole on a surface. Fake Light 2 can. On marketplace. :)
     
  6. MilesThatch

    MilesThatch Member

    Joined:
    Jul 12, 2016
    Posts:
    423
    All you have to do to make colored lights is draw a black and white version of the sprite that punches through the black surface in additive blend mode. You can do that by taking whatever sprite that is used to punch through the surface, make a copy, color it white and black and use that in a blending mode.
     
    Last edited: Apr 11, 2017
  7. Niels

    Niels Member

    Joined:
    Jun 22, 2016
    Posts:
    828
    that's how I did it myself, but it's not a very elegant way:)
     
  8. Greys0n

    Greys0n Guest

    Useful info, thanks for sharing!
     
  9. NazGhuL

    NazGhuL NazTaiL

    Joined:
    Jun 20, 2016
    Posts:
    533
  10. Dyysert

    Dyysert Guest

    Thank you
     
  11. NazGhuL

    NazGhuL NazTaiL

    Joined:
    Jun 20, 2016
    Posts:
    533

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice