shadow

  1. M

    Drawn shadows overlapping issue

    So in my top-down viewed game, I have cloud shadows (transparent sprites) that occasionally fly over the levels. They overlap tho, causing the overlapping section to go dark, and it looks bad. I tried learning to use Surfaces to overcome this issue..... but honestly i dont have much clue how to...
  2. YoSniper

    Legacy GM [SOLVED] Shadow with window around player

    [EDIT] I have figured out the problem. It was an issue with x and y relativity, as well as the size of the surface I was using. Hello all, I've posted about shadows and light sources before, but now I'm trying to create an object that darkens the area around the player the farther out you get...
  3. YoSniper

    Legacy GM Easiest Way to create "Light Piercing Shadow" effect

    Hello everyone! I've been programming in Game Maker Studio for about a decade now, but when it comes to lighting effects, I tend to be at a loss. I am aware of certain features in GMS like "blend modes" and I understand the difference between bm_add and bm_normal. However, I am aware of the...
  4. P

    Help with "with" to affect all instances of an object.

    Hi everyone, I have an object I call "oLighting" it's an accumulation of code that I've picked up on tutorials and forums, and it creates a light source that affects all my objects under my parent object. It works great, however I'm having troubles with the "with" function, as I already have all...
  5. Jacob Thrasher

    Create dynamic "shadow" effect for a platformer

    Hello, I am working on an bird enemy for my platformer. The way I would like it to attack is as follows: The bird will be above the player's screen view, and casting a shadow on the ground. Once the player lands on that shadow the bird will follow him/her around for a couple seconds before...
  6. P

    GMS 2 Accessing Sprite / Mask As Vertices

    I'm currently trying to improve my project's implementation of shadow projections. Currently, the lighting system is very rudimentary, and works as follows: 1. Render a surface and populate it using all light-creating objects' lighting sprites 2. Calculate the projection of all shadow-casting...
  7. David Lorenz

    (SOLVED) Homogeneous overlapping transparent shadows. How?

    Hello, everyone! I'm still pretty new to Game Maker Studio 2 so I apologize for my ignorance. I have numerous objects of which sprites have transparent shadows, but I don't like the way the different shadows overlap into very dark tones. I'd like the shadows to merge with eachother without the...
  8. P

    Shadow that gets smaller as you jump

    PkirkbyMember 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...
  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. G

    GMS 2 Resolution of a Surface

    Hi! I was following the friendly cosmonauts tutorial on shadows when I noticed that the resolution was really low for the shadow surface. Here's the video I was wondering if there is a way to set the resolution of a surface so the shadows don't end up so pixely. (I have the surface only...
  11. Admiral Nemo

    GMS 2 Would like some assistance with basic shading

    I would like to figure out how to create this super basic shading function for objects in my game. The sun will always be at the center of the map so getting a sprite to spawn on my ship isn't that hard, however, I've having some trouble trying to figure out how I could keep the mask and the...
  12. Edwin

    Legacy GM [Likely Solved] Draw shadow in front of the certain object?

    How to make a shader or surface thing that draws shadow only in front of the certain object? I made this example, but it's not what I want, because shadow draws only when moon object collides with earth object: Please help!
  13. S

    tree shadows under player

    hello. So. i'm using depth = -y to make the effect of going behind trees. My tree is: draw_spire(shadow) draw_self() so the shadow is under the tree. But when my hero goes behind the tree (depth = -y goes into effect), the tree shadow shows on top of the hero. when the hero is in front of the...
  14. DaDonMike

    GML [SOLVED] drawing shadows

    hi, i have a really hard one to work out.. for me anyway.. i have a tree and its set to its own x & y in the room. for the tree shadow i'm redrawing the tree and setting alpha to 0.5 and set it to black and to the trees x & y. i have a player with a torch witch is top down view and the whole...
  15. Nathan Laing

    Legacy GM [SOLVED] Drawing overlapped shadows, maintain alpha

    Hi all, I want to draw overlapped shadows, but without accumulated blending (I don't want the shadows to get darker as they are drawn on top of one another). Perhaps someone knows off the top of their head what blend mode might do the trick? I have looked at the blend modes documentation, and...
  16. TheOakNuggins

    GMS 2 [HELP] Draw Shadows Beneath Player

    Currently I am drawing a shadow at my player object's coordinates. This doesn't look to good when you jump in the air. So I have a few questions. 1Q.a) How should I go about creating a system that will draw the shadow on whatever object is underneath the player. This way you can jump and still...
  17. W

    GMS 2 Shadow collision? (Need help/ideas)

    So I started two months ago (again) with Gamemaker Studio 2 and wanted to create a "solid" shadow for a little 2D Puzzle Platformer. Shadowcasting was no problem after following this Guide, but I can't figure out a good (not performance heavy) way to check for collision. Tried to check for for...
  18. K

    [SOLVED]Object and it's shadow, help needed!

    Scenario is this: I have an enemy object set in the room, and when it's created it "spawns" a shadow object. The shadow object is set to have the same coordinates as the enemy -> enemy has a shadow. This works until there's more enemies. Whenever there is more than one enemy, all of the shadows...
  19. A

    Use light to trigger events

    I am looking for a way to draw dynamic shadows/lights that can affect other objects, such as keeping enemies away or activating switches. I've tried looking for tutorials on such things for GMS, and at one point I found one for Unity. However, I feel much more confident in using GMS, as I've...
  20. G

    GMS 2 How to make surface based light/shadow system work in split screen multiplay game?

    Hi, I have been using GMS for few months and every time I have questions people here generously helped me. Thank all of you guys. Now I am working on a local split screen stealth game that need line of sight shadow system ---- sort of like Monaco, but a PVP basis, meaning players are not...
Top