• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

shadows

  1. Schim

    So, let's discuss shadows and texture overlapping

    I've started some studies on texture overlap and shadow blending, and I need some help. Basicly: I want the shadow textures on my game to NOT draw over each other, and I'm studying A LOT to do so. I've stand uppon a function called "gpu_blendmode_enable" and thought: what if I just turned it off...
  2. Tangerine

    GameMaker Draw vertex buffer without stacking alpha

    I have a vertex buffer for drawing the shadows of my game. I draw the vertex with an alpha of 1 and all shadow sprites are black. Then with a shader I reduce the alpha of the drawn vertex buffer to 0.5. The problem is that the alpha overlaps with each shadow and I would want all of the shadows...
  3. OK_Boom

    SOLVED Help with surface shadows

    Hi Im a noob, I'm making a low-res point and click game. Im trying to create shadows using surfaces to fix the issue with opacity overlap. When I create the surface I get this slight delay/jitter when the shadow sprite follows the player_object, specifically when moving diagonally. Game...
  4. L

    GML AUTOMATIC Shadow/Light Mask Generator for GML Lighting Engines (Script)

    AUTOMATIC SHADOW/LIGHT MASK CREATION FOR GML LIGHTING ENGINES! Hey Everyone! So a while back I was making a little top down shooter for fun, I experimented with various 2d lighting engines, most have the ability to create a "shadow", or "light mask" based on a sprite which allows shadows to be...
  5. P

    Legacy GM shadows angled away from light source object(half-resolved)

    I draw shadows on surfaces, everything's good visually, except this shadow will not follow the player, and I'd like to get the shadows to angle away from the "light source objects" ie torches, lamps, sun, etc. as the player walks by them. here's my code from the Draw event: -- -- Thank you in...
  6. S

    Legacy GM Shadows in Top Down Games

    Hello, I've recently been developing a Mario & Luigi RPG styled platforming engine. The platforming system in of itself works fine, but the problem I have is with drawing shadows below blocks and the player itself. I should also mention that I'm using GMS 1. Every object has a "root" that...
  7. P

    Trying to implement Real-time lighting in 2d

    I’ve just run through this tutorial: https://www.yoyogames.com/blog/419/realtime-2d-lighting-in-gamemaker-studio-2-part-1 and part 2 and i’m having some pretty weird results. Is anyone familiar with the tutorial? Have it working in their games? If you can point me in the right direction to fix...
  8. S

    GameMaker Tile Shadow Light System

    Hi, I am making a RTS game with... ants, and I was thinking to add some shaders or something to the underground, so it has details and does not seem plain images. So I thought about lights, I like the light used in the game called Empire of the Undergrowth, but is a 3D game. The underground...
  9. Anixias

    GameMaker [Solved] Need help with 3D Shadows using a single directional light

    Hi all. I'm trying to get real-time dynamic lighting in my prototype right now. The game is 3D in a perspective projection. It will have a view similar to that of an RTS or base-building game, so top-down ish at around 30 degrees down from straight forward (probably going to tweak that later)...
  10. P

    Need help with simple equation

    Hi everyone, I'm having completing what I feel is probably a simple equation to complete a simple action. What I'm trying to do is make a simple lighting system. I have an object "oLight" and as I walk past it, my shadow casts in the opposite direction. It works well, however, I'd like to make...
  11. P

    Need help with shadows that grow and shrink with jump

    Hey everyone, I have this code implement from a tutorial I did. I have a z-axis in my game, and a jump command. When I jump, my shadow stays the same obviously. I am trying to work out an equation or simple solution to have it somehow multiply,divide, etc. by my zsp (my jump height on the...
  12. S

    Draw event for all objects with same name

    Hey guys. So i have an object that draws shadows for all my other objects. I'm at the point where i want to draw_ellipse for my trees. so i write draw_ellipse_colour(obj_tree.x-34,obj_tree.y-27,obj_tree.x+39,obj_tree.y+10,c_dkgray,c_dkgray,false); but only one of my trees gets the ellipse...
  13. K

    Windows Problem with drawing FOV [FIXED]

    So I'm trying to draw lighting and shadows to create a FOV sort of look but I'm getting a weird interaction when crossing over walls. Here is the code I am using. Create Event fovsurface = surface_create(room_width, room_height); shadowsize = 1100; fovarc = 45; lookdir =...
  14. JeanSwamp

    GameMaker Draw Shadow Character

    Hello, I'm trying to get a shawow beneath the character and I've found this great tutorial, that does exactly what I needed. http://thunderhorseco.tumblr.com/post/154035412817/gm-studio-shadow-tutorial Problem is, I'm not sure what's different in my case, as if I'm touching the ground the...
  15. I

    GameMaker Transparent color [SOLVED]

    I want to draw shadows in a corners of the room using draw_rectangle_color: draw_rectangle_color(x1,y1,x2,y2,color1,color2,color3,color4,false) But I need replace color3 and color4 for a... transparent / invisible color. Does something like it exist ? I just need to change the alpha of the...
  16. L

    Help with coloured dynamic shadow shader

    I have recently been trying to implement a dynamic shadow shader into my projects. I have found this which video which shows off his shader code but honestly I need some help working it into my projects. If someone could help me here that would be great, thanks in advance.
  17. Z

    GML Use All Instances Of An Object In Draw Event [SOLVED]

    Hi folks ! For my shadow system in my top-down game (faked 3D), I created two types of shadows. A "static" shadow drawn under huge objects and platforms and a "moving" shadow drawn under my oPlayer, NPCs, enemies, etc.. My "static" shadow (called oShadow) is a simple black object with an alpha...
  18. T

    Procesuraly add 3d effect.

    Hello internet, This might be very confusing, but here's my problem: I made a puzzle game where you have maze 'pieces' with a 3x3 layout with one or more entrences/exits. The premise of the game is that everytime the mplayer walks into one of these it turns 90° before the player can leave...
  19. matharoo

    Alpha Soft Shadows - Automatic (WIP Marketplace Asset)

    Hey! I'm working on a shadow manager that I will release on the Marketplace. I thought I'd make a thread for updates & stuff, and for suggestions from you guys. >> Documentation << It supports point lights (as many as you want) and directional mode (sun). Let me know what you thought!
  20. Mike

    Asset - Demo TLL shadows

    https://marketplace.yoyogames.com/assets/6275/tll-shadow-demo I've started to release the sources to the "Game in a day" series I've been doing as free demos i the hope folk can learn from them. This is a demo showing how to get the same kinds of shadows that the old ZX Spectrum game TLL...
Top