shadows

  1. 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...
  2. 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...
  3. SeirLord Games

    GMS 2 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...
  4. Anixias

    GMS 2 [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)...
  5. 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...
  6. 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...
  7. 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...
  8. 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 =...
  9. JeanSwamp

    GMS 2 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...
  10. I

    GMS 2 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...
  11. 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.
  12. 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...
  13. 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...
  14. 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!
  15. 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...
  16. M

    Legacy GM Simple shadows in topdown shooter

    Hello I've been collecting lots of possible ways to do this, some more practical than others, but i thought I'd throw this out here to get some feedback and maybe other suggestions I haven't discovered yet. So, I'm working on a top down shooter, literally all the graphics are portrayed in a...
  17. S

    Steam The Walking Vegetables (Win+Mac)

    It’s the 1980’s and an evil alien race has invaded Earth, turning all vegetables into crawling, bawling, mauling abominations. You are about to join Department Radical, the grooviest police force on Earth. Are you a rad enough dude (or dame) to smite these ravenous creatures...
  18. J

    GMS 2 Surfaces help! Clipping one sprite using another to maker a shadow...

    Hi all, My gms education has been going nicely... until I ran into surfaces, that is! I understand the basics of setting them (I think), but really struggling with this little hurdle. I have a 'plane' object that flies around, and then every now and then it passes 'under' a cloud. I'd like to...
  19. T

    GML Creating a Layer of Shadows

    Currently I'm using the friendly cosmonauts depth system () for an arpg, but now I'm trying to add simple shadows. I don't want to use shadow objects (for efficiency reasons), and I havent been able to figure out a way to make draw_sprite(spr_shadow,0,x,y); work with the depth system. Is there...
  20. Luke Pierson

    Indoor/Outdoor Shadows

    Hiya! In my game, I have indoor and outdoor sections. I would love to have it so that when you go inside buildings, everything outside turns black, with the entrance, such as a door, fading to black, so you can still slightly see outside a little ways before it all turns to black. This way, the...
Top