lighting

  1. FeetUpGaming

    Legacy GM Very Strange 3D Lighting Bug. Anyone know?

    Hey i'm trying to make a 3D game with lighting and this happened. It gets better if i turn shading on but i just want to know why is this happening? And is it normal for no shading? Any answers would be great. I'm not sure if it's because of have multiple floor objects on top of each other or...
  2. Nathan Laing

    Job Offer - Artist [CLOSED] [PAID] Light shapes (gradients)

    Greetings, I require various "shapes" (circles, beams, cones, rays etcetera) of "light" in transparent-to-white gradients. The perspective is top down. Many of these light gradient shapes will need to be based on an already existing art asset, such as in the example below. Please send me a...
  3. B

    Design Dynamic Flashlight Lighting

    My friend and I are working on a thriller/survival horror esque game and we couldn't figure out if Gamemaker had a dynamic lighting system. So, we're trying to make our own. Our plan is to put the texture on one layer, add a layer of darkness, then have the flashlight pointer cut out the layer...
  4. Luke Pierson

    Any good lighting tutorials for GMS2?

    Hello! I'm looking to create an immersive darkness effect for my game, capable of circular lighting around the player and various objects (like torches on walls etc). Are there any decent tutorials, preferably videos, on how to achieve this in GMS2? I think a lot of the old ones I used no longer...
  5. Anixias

    GMS 2 Accessing the Z-Buffer

    Within GMS2, you have the capability to write data from vertex buffers into something called a Z-Buffer that stores depths to pixels within a 3D (or even 2D) environment. It is used in rendering to decide which pixel to draw when two pixels from different triangles occupy the same screen space...
  6. Strawbry_jam

    GMS 2 Deferred Normal Map Lighting w/ Spine

    Note: This asset is no longer being supported or updated. Description This is a normal map lighting engine using deferred rendering, made and designed for GameMaker Studio 2. Features: Easy to drop into any project and implement lighting Highly optimized Supports sprites and tilemap layers...
  7. S

    Shaders Burnt out on this shader error

    Hey yall, just really need a second (or more) pair of eyes on this because i'm not sure what i'm missing. Trying to make a 2d directional spotlight effect with a shader. Heres the SpotLight() function that does the lighting calc. Heres the Main() of the shader so you can see how SpotLight()...
  8. Luke Pierson

    Player Lighting Running Off By Itself

    Hello! So I followed a couple tutorials on how to make a sort of torch effect for my player, and the lighting looks cool, but it seems that as soon as I start moving my player, the torchlight moves faster and so it seems to run off by itself and is not attached to where my player is. How can I...
  9. Nocturne

    GMS 2 Aura 2

    Buy For $7.99 here: https://marketplace.yoyogames.com/assets/5229/aura-2-0-lighting-engine NOW UPDATED FOR GAMEMAKER STUDIO V2.3+!!!!! Aura2 is a GMS2 specific remake of the lightweight, easy to set up lighting engine that I created for your 2D games. It's main feature is that it's a simple to...
  10. G

    Lighting issue

    Hello everybody ! i have a quick question for GML , i've been doing an lighting system and apparently everythingh is the opposite ... like if you put on white the screen goes black if you put orange it goes blue. thing is , i want to do a little torch-like lighting , but i can't get a color to...
  11. K

    Released Let Them Come

    Hi everyone, my first independent game Let Them Come launched on Steam and Xbox on October 3rd. Coming to PS4, iOS and Android in the coming weeks. Let Them Come is fast-paced pixel art shoot ‘em up that makes heavy use of shaders to achieve exciting lighting effects. Game Maker has been a...
  12. O

    Legacy GM Making an in-game flashlight?

    Hi everyone, I'm making a short horror game for my Design class, and wondering what the best way to implement a flashlight would be. It's a very simple side-scroller, you can only move left or right. The protagonist has a flashlight, and it should be very simple to do. But the only thing I can...
  13. A

    Shaders [SOLVED] Normal Map Shader Coordinate System Problem

    Hey I am trying to use a shader to add simple normal map lighting to my game. I am about 90% there, but there seems to be a discrepancy between the game coordinate system and my shader's coordinate system, and I can't seem to wrap my head around how to get them to line up. I know that it...
  14. Nathan Laing

    Legacy GM [SOLVED] Lighting with surfaces, difficult predicament

    Greetings, The typical surface lighting scenario is one where the entire game room (if it's small enough) or the whole view is first entirely covered with a blank surface cleared to black. Holes are then 'punched' through this surface revealing the content beneath. This works for an indoors...
  15. SquiggleyPete

    GMS 2 Lighting with surfaces: can't change color of lights

    I'm setting up a basic lighting system in my game. There are two objects involved; obj_lighting, which creates the surface and handles all the drawing, and obj_light_source, which I place in the room at points where I want there to be a light source. I've put a variable in creation code of the...
  16. Jared Johnson

    Color math help please!

    I'm using GM8. I need to figure out what color to blend with while drawing a colorless sprite to match the same colorless sprite drawn with one color to a surface, and then the surface is blended with another color. I have to do it this way, I cannot draw the shape to the surface already...
  17. Mike

    OFFICIAL Realtime 2D lighting - Part 2

    The second part of the realtime 2D lighting Tech Blog is now live. Realtime 2D Lighting in GameMaker Studio 2 - Part 2 "In the last post, I showed you how to create the fundamentals of a 2D lighting system, so in this one I want to carry on the current example and make it more like an actual...
  18. NazGhuL

    Asset - Objects Fake Light III [GMS2]

    This is Fake Light III: https://marketplace.yoyogames.com/assets/5348/fake-light-3 An upgrade of my tutorial Light(Fake!). What do you get with this asset? An easy way to add fake light to your projects. With color or not. Like its predecessor, it does not handle shadows or wall blocking...
  19. Mike

    OFFICIAL Realtime 2D lighting - Part 1

    We have a new tech blog up at YoYo Games, and it's all about the lights! Realtime 2D Lighting in GameMaker Studio 2 - Part 1 "One of the more advanced things developers want to do is create their own 2D lighting engine, but the reality of it sometimes gets a little overwhelming. In this post...
  20. M

    Flashlight not staying on player

    Hello! I have a simple surface darkening everything and I have a flashlight sprite going form the player with bm_add. Thing is, everything looks perfect but the flashlight is drawn on a different position rather than the player's position and it moves at different speeds as well. I am using...
Top