How Does 2D Game Lighting Work? | GameMaker

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 27

  • @glebtsereteli5631
    @glebtsereteli5631 ปีที่แล้ว +25

    There is a beefy memory leak issue here - you're creating a new ds_grid every frame without ever destroying it.

    • @LeonacYT
      @LeonacYT ปีที่แล้ว +2

      as of today this was not fixed.

    • @LeonacYT
      @LeonacYT ปีที่แล้ว +6

      declare a "grid" on CREATE like this: grid = ds_grid_create(2, ds_list_size(points) * 3). On STEP Event: if (!ds_exists(grid, ds_type_grid)) {
      grid = ds_grid_create(2, ds_list_size(points) * 3);
      } On POST-DRAW event: if (ds_exists(grid, ds_type_grid)) {
      ds_grid_destroy(grid)
      }

    • @frogleap9316
      @frogleap9316 10 หลายเดือนก่อน

      @@LeonacYT this dosen`"t work for me : i get : .points(100030, -2147483648) not set before reading it. - grid = ds_grid_create(2, ds_list_size(points) * 3);

  • @Mk2kRaven
    @Mk2kRaven ปีที่แล้ว

    This is an amazing video. It teaches you very easily the theory behind making a lighting system. I don't think anyone has ever explained it this in-depth.

  • @GameMakerEngine
    @GameMakerEngine  ปีที่แล้ว +8

    A big thank you to Jordan Guillou for making the video.
    GameMaker is everything you need to take your idea from concept to finished game. With no barriers to entry and powerful functionality, GameMaker is the ultimate 2D development engine!
    Try out making your own game. It takes 15 minutes and you’ll only need this video: th-cam.com/video/nwlvT-L9vFg/w-d-xo.html, and a free copy of GameMaker: opr.as/DownloadGM-YT

    • @persian-badansaz
      @persian-badansaz ปีที่แล้ว

      Sorry one question can I make a game like fallout 2 in game maker or I should try another engines

  • @1upIndie
    @1upIndie ปีที่แล้ว +19

    Good video, the content provided does lead to a really decend result. But (as stated) for big rooms with tons of instances/light sources you will have a substantial drop in performance. There is a shader based version that goes in a similar direction that does not have to be a resource drain (please hire this guy). Hopefully one day the other guys from (yes, I am looking at you Unity, Godot or Unreal) won't laugh at our puny light systems and call us brothers in arms with our own instant light system integrated in GameMaker. One day...
    Great video tutorial in any way, that was a really well crafted explanation of such an advanced topic.
    th-cam.com/video/BhnAcNPygyg/w-d-xo.html

    • @reedrehg
      @reedrehg ปีที่แล้ว

      One day 🤞

  • @unlisted_games2752
    @unlisted_games2752 10 หลายเดือนก่อน

    How about triangle shaped lighting?

  • @Deer_Paradise
    @Deer_Paradise ปีที่แล้ว +1

    *Thx for lesson and file* 😌🙏

  • @doublej69
    @doublej69 ปีที่แล้ว +1

    Thanks for the video. These principles can be applied in shaders that are much more suitable for lightning effects in term of performance.

  • @frogleap9316
    @frogleap9316 10 หลายเดือนก่อน

    It works fine, i have a issue with my objects that are not visible in the shadow or when i switch the layer are not visible in the light i need it in revers any help ? I would be grate full, We cast light so if the light is above a obj so the Obj is no longer visible how can we make that work ? I am a total Noob but i want to get my lighting right.

  • @carlitos5336
    @carlitos5336 ปีที่แล้ว

    Awesome, thank you!

  • @MaverickMerza
    @MaverickMerza ปีที่แล้ว

    Make a tutorial in DnD version too pls.

  • @EmGi_
    @EmGi_ ปีที่แล้ว

    Insane tutorial

  • @online.python.dersim
    @online.python.dersim 6 หลายเดือนก่อน

    Great video thanks

  • @andreaguillou944
    @andreaguillou944 ปีที่แล้ว

    Great tutorial

  • @flaviopsilva_
    @flaviopsilva_ ปีที่แล้ว

    thx for the video😃

  • @scorpiyon_dev
    @scorpiyon_dev ปีที่แล้ว

    Great video as always!

  • @jaymesthelionboy7156
    @jaymesthelionboy7156 ปีที่แล้ว

    can you help me in game maker I made a 16 by 16 tile set but the pixels were small so I resized and it looked bad

    • @jaymesthelionboy7156
      @jaymesthelionboy7156 ปีที่แล้ว

      I need help anyone

    • @jaymesthelionboy7156
      @jaymesthelionboy7156 ปีที่แล้ว

      I'm new to game maker

    • @jackp492
      @jackp492 ปีที่แล้ว +1

      @@jaymesthelionboy7156 you’ll have to start again unfortunately,
      Have a think about the resolution your game will be played in, and how many tiles will fit on the screen at any given time, and that will be a start of how you scale everything to look, hope that helps

  • @Legend-War
    @Legend-War ปีที่แล้ว

    hello, I saw that you are doing well with gamemaker, I also have a problem:
    I play a game with coins and I save mechanically in room 1 when I enter room 2 where the action of the game takes place, when I return to the end of the game in room 1 it does not save my coins won in the game, this is because it saves in room 1, I don't know how to save only the points and be able to see them in room 1 after the game! I can't save after the game because it stays in room 2, can you help me with a solution?
    I don't know if you can help me! Thanks in advance!
    look here what I'm talking about th-cam.com/video/G_qx09nK47U/w-d-xo.html

  • @77.corrupter.77
    @77.corrupter.77 ปีที่แล้ว

    it didn't work😔

    • @GameMakerEngine
      @GameMakerEngine  ปีที่แล้ว

      :( Try the forum, people are often able to help there, or check your work. forum.gamemaker.io