shadow

  1. Metzger

    GameMaker Drawing shadows also draws everything else

    Hiya! I really need help with this. I have problems when I draw shadows from wall objects (obj_floor). When the room is large enough in this case 2048x960 when moving from right to left the further left you advance the more the shawdows are drawn as the mirror image of the room. This happens...
  2. P

    Drawing a shadow for a sprite

    Hi everyone, I just need a little help creating a shadow for my sprite. I'm making a a sprite get large in the air, to give the illusion of height. I want to have a shadow under it that slowly displaces as the sprite gets "higher" and have that shadow go back underneath it as it lands. Here's a...
  3. Rafael Augusto

    Windows "draw sprite shadow" finding the sprite that will have shadows

    I have a question about the script "draw sprite shadow" how to locate the sprite that will be placed in the shadow with the code: draw_shadow(5,315, c_black, 0.5) I got it by "draw_sprite_ext_shadow" but mine game is big I need a simpler solution like the one mentioned first. link:Script
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. J

    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...
  9. P

    GameMaker 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...
  10. 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...
  11. 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...
  12. 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...
  13. G

    GameMaker 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...
  14. Admiral Nemo

    GameMaker 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...
  15. E

    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!
  16. 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...
  17. 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...
  18. 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...
  19. T

    GameMaker [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...
  20. W

    GameMaker 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...
Top