Dynamic alpha mask

0 favourites
  • 8 posts
From the Asset Store
Is a system for building scorecards and achievements online for use in games Using this system, you can create a scorebo
  • Hi all!!

    I'd like to know if there were a way to make a dynamic alpha mask, like a sniper scope or something...

    But actually, I'd like to make something like a sniper scope, but "reverted" : everything would be invisible but the objets within the scope would be revealed.

    Is this possible? If so, how could I do that?

    Thanks in advance!

    Rag'

  • Example using sprite effects.

    Notice I'm using two layers, the top layers with the scope effect is to have its property "Force own texture" set to yes.

    The objects "Cover" and "Scope" both have an effect allowing for the effect to work.

  • Interesting!

    With that kind of method, is it possible to have a sprite "invisible" by default and reveal it by moving the scope over it?

  • You can make a layer visible or invisible by event (:

  • "invisible" was not the right word, sorry <img src="smileys/smiley9.gif" border="0" align="middle" /> I meant something like... "masked".

    For example: I have a sprite, I want it to be "masked" by default (for the player, it would just be invisible) and smoothly unmasked when I put a scope over it, just like the example above but "reverted".

    In a game, it could be, I don't know... Maybe some "invisible" ghosts the player would have to reveal with a magical light.

    Know what I mean? I think my description is not clear enough...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • revealGhost.capx

    need the canvas plugin

  • You're the men, guys :)

    I'll have a look at this! And eventually get back if I'm lost...

  • Not sure if this is along the same lines - but I couldn't get these examples to work...

    Let's say I have a background city wall

    A person layer with skin

    Underneath that person muscle and bone.

    Is it possible to dynamically apply mask sprites at different locations of the skin layer to reveal the muscle and bone?

    Thanks

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