How do I Get a transparent Hole in a players Pic.

1 favourites
  • 7 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hi,

    I have go so far as being able to get a player to pick a picture, now i would like to be able to make a transparent hole in it. any ideas please ?

    thank you.

  • you can mask it out with another circle shaped sprite, or use something like the 3rd party canvas plugin to redraw it to a new image (not necessary if you don't actually need the user to download the image)

    For masking check out "Blend modes.capx" in your construct2\examples directory.

  • you can mask it out with another circle shaped sprite, or use something like the 3rd party canvas plugin to redraw it to a new image (not necessary if you don't actually need the user to download the image)

    Hi Lof, thank for helping .

    For masking check out "Blend modes.capx" in your construct2\examples directory.

    I have used a mask over it however this will not let me see through to the layer behind.

    ie if the player uploads the target as a tree when hit i want to see through the tree to the forest or what ever behind.

  • Did you make sure the mask is on the same layer and that the layer has force own texture set to true? Please note that these blend modes do not show in the editor, the effect is only visible in preview.

    Also z-order of the mask is very important.

    Edit: set opacity to 0 the mask's. Very important!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Put everything you want to be masked out on the same layer, put the mask object on top, turn "Force on texture" ON, put everything else on a layer below it.

    here is an example

    http://www.headbangames.com/mask.capx

  • Did you make sure the mask is on the same layer and that the layer has force own texture set to true? Please note that these blend modes do not show in the editor, the effect is only visible in preview.

    Also z-order of the mask is very important.

    Edit: set opacity to 0 the mask's. Very important!

    thank you for helping

  • Put everything you want to be masked out on the same layer, put the mask object on top, turn "Force on texture" ON, put everything else on a layer below it.

    here is an example

    http://www.headbangames.com/mask.capx

    thank you very much <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

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