Ultra-Fast 2D Dynamic Lights in GameMaker Studio 2 - PART 1

Поділитися
Вставка
  • Опубліковано 26 лип 2024
  • As Promised, I will be giving you all a tutorial on the fastest 2D Dynamic Lighting system ever made in GMS 2!
    In this tutorial, I will be teaching you guys the secret algorithm to get more than a thousand dynamic lights with no lag!
    You can try out the Lighting system here:
    grizzliusmaximus.itch.io/ultr...
    Blog post:
    forum.yoyogames.com/index.php...
    Timestamps:
    0:00 Intro
    0:36 Setup
    2:55 Light Implementation
    10:28 Shadow Implementation
    23:53 Multiple Lights Implementation
    31:53 Testing FPS + low res optimization
    Special thanks to Mewmore for the background music!
    Channel link: / mewmore
    - Undella in Sumer - • Mewmore // Summer in U...
    - Lilies Theme - • Mewmore // Lillie's Th...
    - Summer in Lacunosa - • Mewmore x Dasgust // S...
    - Lisa's Theme - • Mewmore // Lisia's The...
    - Driftveil Style - • Mewmore // Driftveil C...
    - Battle! Deoxys - • Mewmore // Battle! Deo...
    - Let's Go Surfing - • Mewmore // Surf (Pokém...
    - Pokemon League - • Mewmore // Pokémon Lea...
    - Dreamyard - • Mewmore // Dreamyard (...
    Itch.io:
    grizzliusmaximus.itch.io
    Instagram:
    / grizzliusgames
    Twitter:
    / grizzliusm
  • Ігри

КОМЕНТАРІ • 115

  • @misterr3083
    @misterr3083 3 роки тому +11

    This is really incredible work! Can't wait for part 2!

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому

      Thanks! glad you liked it! Part two will be on improving the aesthetics and how to play around with the light system :)

  • @philosopherhobbs
    @philosopherhobbs 3 роки тому +7

    You've done a tremendous job here. The system is obviously very useful and I got excited when you saying you'd get it working with tiles. Lots of content in a compact video!

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +2

      Thanks! I knew I had to share it to all when I saw how valuable this information is. It can't be all just for myself. That would be too selfish.

  • @ramrod33
    @ramrod33 2 роки тому +5

    Absolutely incredible.
    Super fast paced tutorial, and very effective when combined with your blog post.
    Thanks so much for making this video!
    The more advanced stuff went over my head on the first pass, but it just means I have more to study up on.
    Thanks again!

    • @GrizzliusMaximus
      @GrizzliusMaximus  2 роки тому

      I hope the first video makes sense as that is the heart of the tutorial. the others are extra addons that make the lighting even more powerful

  • @ShmuPixel
    @ShmuPixel 2 роки тому +1

    I would have lost months figuring this out if it wasn't for your tutorial(s)... Thank you so much! You're going a bit fast for me but it's okay since we can pause and rewind at will. I encountered issues at pretty much every step, which made me watch again and again until I figured out what I did wrong, but it's still better than trying to figure everything on my own! I'll definitely watch the rest of the playlist, even though you're going fast you're also giving a lot of useful information along the way to help understand everything.

  • @jaysanprogramming6818
    @jaysanprogramming6818 3 роки тому +11

    Wow! I'm impressed by your teaching skills and speed. That must have required some huge preparations.

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +4

      It took a lot of tries and a lot of editing. Glad you liked it!

  • @junglejim6674
    @junglejim6674 Місяць тому

    Holy snap, I got it working and tailored it to fit my game (had to change quad values to fit bottom center origins to cast shadows from players feet). Looking forward to watching the rest of the series and learning along with it, I appreciate your work immensely.

  • @SDB_Dev
    @SDB_Dev 3 роки тому +2

    Great video. I really enjoy your style and delivery! Usually I dont sub after watching a single tutorial but this was something else. Looking forward to more! :)

  • @GMGuru
    @GMGuru 3 роки тому +2

    Great work man! Looking forward to seeing part 2 :)

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому

      Thanks man! I'm glad to see you interested in this tutorial.

  • @ABurntMuffin
    @ABurntMuffin 2 місяці тому

    haven't started implementing this one bit but I watched through the first two parts and this is incredibly dense even though you chose to skip over further shader explanations, well done. I learned how to do fragment shaders through trial and error, so I guess this is how I will learn vertex shaders!

  • @vd9187
    @vd9187 2 роки тому +2

    Incredible tutorial, thank you.
    Now i understand my geometry lessons.

  • @chuuuuuuuck
    @chuuuuuuuck 3 роки тому +1

    Very concise and well explained. Wish all tutorials were as well done as this.

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому

      I too love concise tutorials and the last thing I wanted to do is become a hypocrite. Thanks!

  • @Feelou
    @Feelou 3 роки тому

    rly nice thanks ! i'm going right now for the part 2 ! :D

  • @nuance811
    @nuance811 3 роки тому

    Absolutely crazy ! Thanks so much man !

  • @henrique011989
    @henrique011989 Рік тому

    Great job!
    This tutorial is a 10/10!

  • @oshdubh
    @oshdubh 2 роки тому

    Wow this is such a great tutorial, and exactly what I need!
    Thank you for being so speedy, you're so smart haha.

  • @JordnD
    @JordnD 2 роки тому

    Great tutorial! straight to the point, also you give a good amount of information at time in my opinion, I dislike when people give to much unnecessary information or don't give you enough to understand what's going on.
    But for a sec I though I had the video set to x1.25 speed again, but it turned out you just talk fast lol.
    I was still able to follow along great tho.

  • @querri4144
    @querri4144 3 роки тому

    lighting and shaders can be pretty intimidating, but implementing this was so nice! not that much code and easy to follow tutorial, many thanks for sharing! :)

  • @SeeleEon
    @SeeleEon 7 місяців тому

    Thank you very much for the tutorial! You are brilliant 💡

  • @CopyCopyOriginal
    @CopyCopyOriginal 3 роки тому +5

    "dont worry, it'll all make sense later" me, later: "he a lie" LOL. this was super useful, I'd much rather wrestle with understanding this and building my own system than purchasing a premade one. love the explanations behind the code, trig etc. thanks, liked and subbed for sure.

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому

      Thank you so much! I'm glad you found my video interesting. my videos were made not only to give people a lighting system, but also to teach the underlying algorithms and math behind. I think knowing how something works is more important than the product itself.

  • @ROBECHAMPGAMES
    @ROBECHAMPGAMES 2 роки тому +6

    For those of you who have weird triangles or shapes coming out, make sure your wall sprite origin point is positioned on the Top left of the sprite! had the same problem but got it working on my game :), also if your light seems to keep growing and growing, set a background!
    And yeah amazing tutorial and Light sys!, the past one i had i only could have like 3 or 4 lights at the same time lol, but im rocking the hundredths with this one! i cannot fathom the work you had to put just to get this working, let alone the recording editing!

    • @bluekill3r_307
      @bluekill3r_307 Рік тому

      Ive tried this and im still getting weird x's where my walls are

    • @Tobbitguy
      @Tobbitguy Рік тому

      Thank you so much! I was about to bring my silly self to the comments to ask about this lol.

  • @michaelpsarommatis8478
    @michaelpsarommatis8478 3 роки тому +8

    I don't usually comment on youtube videos, but, DUDE!!!
    Where do I pay? The quality of your content is AMAZING!!!
    I don't know why you have so little views, but I 'll do my best to help you out! I 'll share it everywhere I can!!!
    Keep up the great work!
    Looking forward for that shoft-edge tutorial, as well as for the edge lighting one.
    Take Care!

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +2

      Thank you so much! I am sharing my code for free but if you feel like paying, you can always head to the game itch page and pay it through your own price. Click the download button first to prompt payment. Thanks again!

    • @michaelpsarommatis8478
      @michaelpsarommatis8478 3 роки тому

      @@GrizzliusMaximus Awesome. I'll definitely consider it! Also, I have a question: I tried to iplement your system in a project I'm currently working on, but it actually DRAWS the white light, instead of SUBTRACTING it from the dark (shadow) layer. I mean, it works really good, but I can't see anything beneath the light. Who should I approach this problem?

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +1

      @@michaelpsarommatis8478 If I understood correctly, you want to illuminate the area and not just produce a white light. I plan on showing that on the next tutorial. But if you want to work ahead, you will need to draw all the lights on a different surface first, then draw that surface using blendmode (bm_zero, bm_src_color). This will make lit areas appear as they do and dark areas appear darker. If you don't understand how blendmodes work, just search it up. there are plenty of videos that explain blendmodes. That's a sneak peak of the next video :)

    • @michaelpsarommatis8478
      @michaelpsarommatis8478 3 роки тому

      @@GrizzliusMaximus I do understand blending modes, I tried something similar to what you said with bm_subtract, but I messed it up cause I don't know a lot of stuff about shaders and I didn't know how to go about it... I will experiment and I will wait for the next tutorial. Take care!

  • @jeremy0001
    @jeremy0001 2 роки тому

    fantastic video, thank you!

  • @oscarlopezfabregas3602
    @oscarlopezfabregas3602 2 роки тому

    You are really talented!

  • @gamemakersjournal6536
    @gamemakersjournal6536 2 роки тому

    Great stuff, it is very clever !

  • @efeberkucar123
    @efeberkucar123 2 роки тому

    Thank you so much my friend *you are the BEST!!*

  • @check7469
    @check7469 3 роки тому +1

    Really thanks man

  • @degrootchristian2038
    @degrootchristian2038 29 днів тому

    Fantastic tutorial.
    Just one tip, you probably shouldnt initialise funtions in a step event. It REALLY tanks performance if you have a lot of functions. You can move them to the create event. (Quad doesnt work in the create event, not sure why. But it works if you move it to a script).
    I recently moved all my functions to the create event and my game went from about 300fps (fps_real) to about 1000 lol.

  • @TymoPC
    @TymoPC 3 роки тому +1

    Thank you so much for doing this you're amazing, hoping for part 2. When it is planned if I may ask?

  • @ONEPLAYERMODE
    @ONEPLAYERMODE Рік тому

    Awesome. Also works on HTML5 as far as I can see, old Notebook, 100 lights at 60 fps.

  • @KazueAM
    @KazueAM 3 місяці тому

    that's AMAZING
    It's very useful... Can i use it on my videogame?
    giving you credits and all.

  • @L_e_o
    @L_e_o 3 роки тому

    You sir, are a god. I went from 0 to "actually kinda knowing wtf shaders do, and how they work"
    in like 3 hours of skipping back through your video at 50% play speed.

  • @miguelangelfernandezerazo3909
    @miguelangelfernandezerazo3909 2 роки тому +1

    I followed all the steps until I got to the part of gpu_set_ztesteneable and gpu_set_writeenable, since I am using Game Maker 1.4 and those functions don't exist in that version, aren't those functions otherwise in Game Maker 1.4?

  • @vg6982
    @vg6982 Рік тому

    Man.. this videos are just awesome. Thank you!
    i have a question, why do you write dots after the numbers?

    • @GrizzliusMaximus
      @GrizzliusMaximus  Рік тому +1

      That's because they are floats. GLSL shader language works that way

  • @chris_burrows
    @chris_burrows 3 роки тому

    Interesting. It's the Doom 3 shadow stencil method done in 2 dimensions.

  • @sphere89
    @sphere89 2 роки тому

    Very nice, where you got knowledge of shaders and math?

  • @CalebWrightfunkofilming
    @CalebWrightfunkofilming 2 роки тому

    How can this same system be set to be the ambiance of the game as well as follow a player?
    Like the illumination of the whole scene, and a light that directly softly glows within the player

  • @Coding_and_Gaming
    @Coding_and_Gaming 3 місяці тому

    Thanks

  • @joLicata91
    @joLicata91 6 місяців тому

    hi beautiful tutorial! How can I set the shadows less black? i mean i followed all the tutorial and is perfect.. but I want less darkness

  • @siferroze
    @siferroze 3 місяці тому

    thanks

  • @jerredkelley4635
    @jerredkelley4635 2 роки тому

    Idk if you still check this or not, but it’s worth a shot. I can only get maybe 3 or 4 lights in a room before my game dumps from 60 to 30 fps. I have a LOT of wall objects in the room. I’ve made some adjustments like deactivating instances off screen and freezing the vertex buffer once it’s created, but the fps just dumps again when the lights are reactivated. So, I thought, why don’t I just bake the lighting since all of those wall objects and the vast majority of the lights don’t need to move anyway. I can get the lights on a surface, but for some reason the shadows don’t appear. I wonder if it’s because the surface is drawn black and the black shadows just blend together? Any thoughts?

  • @Parivertis
    @Parivertis 3 роки тому +2

    This series has been an immensely useful insight into certain aspects of gamemaker and gamedev at large, but there is one amendment I'm trying to make for my own project that I'm struggling to wrap my head around. Basically, in my game the objects which cast shadows can rotate. I have the math for figuring out the x&y of 4 points of a rotated rectangle just fine, but I get confused when it comes to which variables to plug in where in your quad function in order to make it work correctly. I always end up effectively "checking shadows" along one of the outside edges rather than the diagonals if that makes sense. Any help would be greatly appreciated.

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +1

      not sure if this would help. The quad function is Quad( vertext buffer, x1, y1, x2,y2) where x1 y1 is the coordinates of the first point and x2 y2 are the coordinates of the second point. These two points will make a line that forms the wall where the shadow will be casted. To visualize these shadows better, try moving the shadow layer in the room editor higher than the walls so the go over them, then try one Quad function at a time. Once you are satisfied with one Quad, move to the other Quad.
      I was able to make it work with the following lines: (the sprite origin is at x y. You will need to adjust this if the origin is somewhere else like the center)
      var _cwidth = sprite_width*dcos(image_angle);
      var _swidth = sprite_width*dsin(image_angle);
      var _cheight = sprite_height*dcos(image_angle);
      var _sheight = sprite_height*dsin(image_angle);
      Quad(_vb,x,y,x+_cwidth+_sheight,y-_swidth+_cheight);
      Quad(_vb,x+_cwidth,y-_swidth,x+_sheight,y+_cheight);

    • @Parivertis
      @Parivertis 3 роки тому

      @@GrizzliusMaximus Thanks, I was more or less on the right track looking at your reply. I suddenly realised when I got into bed if you were to make points around a rectangle in clockwise or counter-clockwise order you'd need point 1&3 for one quad function and point 2&4 for the other to get the diagonals and that helped me visualise what I needed. It's obvious now that I see it!

  • @davidepuato5616
    @davidepuato5616 3 роки тому +1

    Hi, how do you make the shadows darker?

  • @MJAD86
    @MJAD86 Рік тому

    hey there, i implemented the system successfully. but im having an issue. i have my parent object that has many children, some are affected by the lightinng system. and they are being drawned under the darkess. but some dont... and they are all under the layer were the setup is set. any help plz? thx amazing content btw

  • @SillyArcade
    @SillyArcade Рік тому

    Hey, what's up fellow gamedevelopee! I'm a laptop user with an gtx 1050 Ti Gpu and a Core i7 Cpu. I thought this may be important since my game which has ran fine up until now has had a recent issue with your lighting system: after 10 lights it goes from clean 60 fps to 30, and only gets worse from there. I don't think this is the fault of my game engine since it can handle 800 enemies or so at a time and still hit a clean 60 fps, but I would like to ask for your opinion as to what the problem may be since I've never experience a frame dip before this. Are shaders just generally costly on computers, or am I in a situation where it may be using the wrong gpu or some other conundrum? Thanks! -your friendly neighborhood game developer
    Actually, I just fixed the problem by switching from my gpu to my cpu, somehow that worked, and It can now handle up to around 230 lighting objects before it begins to go, which is more than enough for my game. I guess my only other question would be, is this free use? can I use this in my game with credit to you for the lighting engine? I get it if not, but it would be so cool to be able to have real lighting instead of just gradients. Thanks double! -your doubley signing lunatic

  • @BeingFriends
    @BeingFriends 3 роки тому +1

    I would love a version of this lighting system for top down 2.5d games! Any thoughts on how to modify this for something like that?

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +2

      I have sort of an idea but I haven't implemented it. I hope to show you all once I figure it out :)

    • @philosopherhobbs
      @philosopherhobbs 3 роки тому

      @@GrizzliusMaximus I second this request. It seems very possible to get the coordinates for the Quad function using certain tiles rather than objects. Top down games usually use tiles for walls and hills and so on. Constructing the shadows without having to add a bunch of wall objects would be nice.

  • @AdrianEXE
    @AdrianEXE 3 роки тому +1

    Is there a way to plant the lamp before running the game and detaching it from the mouse all together?

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +1

      That should be easy to do. Just go to the room editor and drop lights in there and delete the light object attached to the mouse. The light on the mouse is just for demonstration purposes to show it is indeed dynamic

    • @AdrianEXE
      @AdrianEXE 3 роки тому

      @@GrizzliusMaximus Hey, just to follow up, for some reason, the light only works in one room and it's the one I created for the tutorial. Here is a video for reference: ua-cam.com/video/eSX4_ScVn3o/v-deo.html
      I'm unsure as to the reason why, but if you happen to know the reason, any hints as to what the problem might be would be greatly appreciated.

  • @FonkyGoose
    @FonkyGoose 12 днів тому

    Hey I had an issue here where the shadows being casted were only working on the top right and bottom left of each wall object, but if the light came from the top left or bottom right there was no shadow, any idea what I'm doing wrong?

    • @FonkyGoose
      @FonkyGoose 10 днів тому

      Figured it out, turns out I put the values in wrong on the Quad function, so I put the sprite_width addition on the wrong one lol, took watching back 3 times for me to notice.

  •  Рік тому

    would it be possible to make a light in the shape of a cone?
    edit: like a lantern?

  • @jackisgoofingoff5510
    @jackisgoofingoff5510 2 роки тому

    Is this applicable to other platform like Unity or custom engine?

  • @Lil_GreeD
    @Lil_GreeD 3 роки тому +1

    I can use a different light or something? For example, if I will create a flashlight, I want to use a triangle light, it is possible?

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +1

      Yes it is possible. Haven't tried it but I think it shouldn't be too difficult. I could add that feature in a later version :)

    • @Lil_GreeD
      @Lil_GreeD 3 роки тому +1

      @@GrizzliusMaximus please, i really need this kkkkkk

  • @karlstenator
    @karlstenator 3 роки тому

    I'm so far behind on understanding shaders, my brain melts! Does anyone have any blogs or YT channels on getting started with them?

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +2

      You can check out this video and also the links he provided in his video description:
      ua-cam.com/video/ch4BYqkL1w8/v-deo.html

  • @Pvaatn
    @Pvaatn 2 роки тому

    Hi Grizz, I am having a strange issue - I am only able to click in 10 lights at a time. The objLight isn't being destroyed, but only the last 10 objLight that are created will show any light. Do you know what might cause this? Thanks in advance!

    • @Pvaatn
      @Pvaatn 2 роки тому

      Well I got to the bottom of it with some creative debugging - it was my camera that was the issue, this line specifically:
      pm = matrix_build_projection_ortho(global.GameW,global.GameH,-99,3200);
      The znear value of -99 used to be 1. I'm not too familiar with all the camera stuff but I believe each light layer is being drawn on one of those layers. When I set it to -99 I can add about 120 light sources (that appear). Hopefully anyone that used the same camera tutorial sees this and finds it useful!

    • @guy3480
      @guy3480 2 роки тому +1

      @@Pvaatn WISH I WOULDVE FOUND THIS COMMENT 2 HOURS AGO! Thank you for putting the solution in the comments. You seriously saved me.

  • @jakedouds1186
    @jakedouds1186 Рік тому

    Hey dude :) I followed your tutorial upto the stage when its ment to draw the small ball of light but it won't show? Does this no longer work since updates? I've followed everything perfectly

    • @junglejim6674
      @junglejim6674 Місяць тому

      First, his room/ view are very small, so the size of the light may be the issue. Second, play around with what layer you are placing the manager object. Third, play around with different gpu blend modes before drawing the light. These things gave me a better understanding of how to manipulate the system/ visualize how it actually works.

  • @EnderPlayed-lp9ko
    @EnderPlayed-lp9ko 2 роки тому

    I think you dont allow us to use this in our projects right? I mean if we want to sell them and stuff

  • @chrishodgkinson322
    @chrishodgkinson322 3 роки тому

    I'd really like to implement these lights into my arena shooter, using the dynamic lights as bullets with just a hitbox for collision so it looks like you're shooting balls of light. My brain just can't get behind shaders though. Is this something that would be easy(fish) to do? I wouldn't need shadows as it's just an open arena.

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +1

      the simplest solution I can think of is to make a light sprite (fully opaque in the middle then fades away). draw all the lights on separate surface initialized to black, then draw the surface onto the game with additive blend mode. Sorry if it sounds complicated. This will not require shaders but it will use surfaces and blend modes.

    • @chrishodgkinson322
      @chrishodgkinson322 3 роки тому +1

      Nope, doesn't sound complicated. Will give it a try and let you know how I get on. Thanks for the prompt reply.

  • @user-dh9jv2pz9v
    @user-dh9jv2pz9v 3 роки тому

    Hello! I probably did a mistake somewhere, my shadows are casting like I am working not with wall angles, but with middle-points of wall sides . Do yo have any ideas why could it be?

    • @user-dh9jv2pz9v
      @user-dh9jv2pz9v 3 роки тому

      Nevermind, I figured it out. My test walls sprites were transparent inside, so light was coming into the sprite until it "hits" diagonal line

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому +1

      @@user-dh9jv2pz9v Glad you figured it out. If you need help, just ask :)

    • @marulin_nikita
      @marulin_nikita 3 роки тому

      У меня такая же тема, что значит прозрачные внутри? Если у меня полностью залитый квадрат у меня типо такого не должно происходить?

    • @coldbit25
      @coldbit25 2 роки тому

      @@GrizzliusMaximus yes, I have the same problem, how to fix it? Changing the origin doesn't help.

  • @mekillerwolf
    @mekillerwolf 3 роки тому

    Is there a way to do lights with this implementation in the Legacy version of GM:S?

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому

      There is a way. I made an early version of this in the GMS 1.4 although GMS 2 makes it easier.

    • @mekillerwolf
      @mekillerwolf 3 роки тому

      @@GrizzliusMaximus Yeah, I can't seem to get the Z-Buffer method working. The lights create a bright shadow that casts over the other lights, therefor blocking the light underneath. I'm not sure how to work around it

  • @moshimooshi
    @moshimooshi 6 місяців тому

    my tileset is disappearing for some reason wtf

  • @SprayPaynt2445
    @SprayPaynt2445 7 місяців тому +1

    it just don't work for me, the test at 8:35 shows no light

  • @micyoz5283
    @micyoz5283 10 днів тому

    Its times like these i wish i wasnt dumb lmao

  • @guy3480
    @guy3480 2 роки тому

    i followed along and ended up with only being able to place 10 lights before they started deleting themselves. THEN i directly copied all ur code over from the project file and my worst fears were realized. Same error. Code red

  • @ZnakezTv
    @ZnakezTv 9 місяців тому

    Come back!

  • @marulin_nikita
    @marulin_nikita 3 роки тому

    Hello! I think my comment was deleted by system because of amount of links I gave it there. Please, check it or I can dublicate it. I really need your help. Thank you!

    • @GrizzliusMaximus
      @GrizzliusMaximus  3 роки тому

      Sorry, I can't find that comment of yours. Maybe it did get deleted. Try sending it to me again :)

    • @marulin_nikita
      @marulin_nikita 3 роки тому

      @@GrizzliusMaximus Hurray! He didn't delete it)
      In general, I have a similar problem as people from below, but I do not have 2000h experience as one of them, and the solution of the second one is clearly not suitable for me. My shadows go crazy and seem to create triangles from the middle of the blocks and they all moved out. Everything can be seen on the video that I specially recorded, before the shadows appeared, the light was correct. I usually don't ask for help and pretend that the system just doesn't work for some reason, but I liked yours so much, even though I understood it just a little bit. I'm a beginner, only a month+ experience, I stuffed quad into a separate script, since I work in GMS2. 2, if you can tell me what the problem is, I will be very happy, because I have already watched the video several times and can't find what it is..Thanks!

    • @marulin_nikita
      @marulin_nikita 3 роки тому

      @@GrizzliusMaximus seems like no way to copypaste link here..wrote a message to your instagram xD sorry for youtube :(

  • @EnderPlayed-lp9ko
    @EnderPlayed-lp9ko 3 роки тому

    lmao and I thought I were a programmer

  • @edyteixeira3551
    @edyteixeira3551 2 роки тому

    i slowed the vid to understand better my english is not too god

  • @jakedouds1186
    @jakedouds1186 Рік тому

    Hello??

  • @MJAD86
    @MJAD86 Рік тому

    hey there, i implemented the system successfully. but im having an issue. i have my parent object that has many children, some are affected by the lightinng system. and they are being drawned under the darkess. but some dont... and they are all under the layer were the setup is set. any help plz? thx amazing content btw