Need help with layer effects.

0 favourites
  • 4 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi guys,

    So basically I want to cut holes out of a layer that has a non-transparent coloured background so that the layers behind it can be seen.

    The layer setup I was think of was is as followed.

    • The lowest layer will be the background.
    • The middle layer will use a solid coloured background.
    • The highest layer will have sprites on it that cut shapes out of the middle layer so the lowest level is exposed.

    Any ideas?

    Kind regards,


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I think some blend modes (destination in?) can be used so sprites are actually showing what is under them, however, I think they need to be on the same layer as the masking one. Just remember to verify if you need to force the texture of said layer for it to work correctly.

    Edit: in your context, I think it is more:

    -Bottom layer

    -top layer with solid color, texture forced, objects with destination out are used to see through it

  • Aphrodite the problem I had was instead of going transparent it went black like it shows in the png. However, that did help me find the solution.

    So the solution was I create a layer and set it to a solid colour. Then set the blend mode to source atop. Then I add a sprite to that layer with the blend mode set to source out. What this does is cut holes out of solid colour to show what is below.

    This maybe not the best way to do it as I found it by trial and error. So if anybody knows how to do it better then do let me know.

    If anybody is interested I am using this technique to solve tile map gap problem when scaling. I basically fill a layer with the colour I want to appear in the gap. Then put the tile map on top. NICE!

  • Glad you found a solution, blends modes are great but tricky

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)