[Plugin] Baz Platformer Drop Shadow

Setup Steps:

  1. Download the files

    • baz_drop_shadow.gd (script)

      baz_drop_shadow.gd (4.7 KB)

    • shadow.png (texture, you can use your own)

      shadow

  2. Add files to your project

    • Place both files in your Godot project folder (e.g., res://)
  3. Create the shadow node

    • Select your player/character node

    • Add a BazDropShadow child node

  4. Configure the node

    • Assign shadow.png to the Texture property

    • Set initial Scale (this becomes the shadow’s base size)

  5. Set the collision mask :warning: Important!

    • In the inspector under Raycast → Collision Mask (common mistake is the Raycast will hit the player collision, so make sure they are different then the ground tile collision)

    • Enable ONLY the layer(s) your ground/platforms use

    • Make sure the player’s layer is NOT enabled (or the shadow will stick to the player)

  6. Adjust settings to taste

    • Tile Size: Match your game’s tile size for proper scale decay

    • Ray Offset: Distance between the two detection rays

    • Min Shadow Scale/Alpha: How small/faded the shadow gets at max distance

5 Likes