mOOnpunk's Recent Forum Activity

  • That's cool, but the mask is not transparent. When the image doesn't cover the mask fully you can see its colour.

  • Updated to fix a load and save bug.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Easily create invisible masks to clip sprites, 9 patch, text and other common objects.

    The plugin uses blend modes to mask objects.

    It automatically creates the sublayers at runtime, and sets up force own textures, moves objects to the correct layer and z order.

    It sets blend modes depending on if you want the clipping inside the mask, or outside the mask.

    It allow multiple masks on the same layer.

    Super simple to use. Just add the sprite or 9 patch to a layer, set it as a mask, then set other sprites, 9 patch or text to be clipped. That's it!

    	+ System: On start of layout
    // first place the easyMask object on the layer you wish to be the mask layer. It must be a new transparent layer.
    
    The plugin will then generate sublayers on that layer at runtime. These are the mask layers. The plugin automatically sets up blend modes etc for you.
    ----+ (no conditions)
    ----// make the mask object. This can be a sprite or 9 slice. The object is then moved to the new correct sub layer for you.
    -----> easyMask: Set mask shape to maskShape
    ----// now select a shape you want to be masked.
    -----> easyMask: Mask objects Sprite
    ----// decide what mask you want. does the shape want to be clipped inside the mask shape or out side?
    -----> easyMask: Set mask mode to Hole Punch (Erase inside)
    
    
  • Thanks R0J0hound

    It would be nice to have less of a hacky way to do this, but i was able to do what you said and put it in a plugin that handles it all for you automatically. Adding some more features then will release it.

  • There is no blend mode combination you can have that clips sprite A to sprite B's shape while leaving sprite B invisible.

    The closest is apply source-in to sprite A, and having a transparent edge on the image, but it needs to be larger than sprite B to hide sprite B's the shape.

  • Sorry, i was under the impression that it was possible in v1.

    Is it possible to add an official supported method in V2?

    So we can do proper masking and clipping of sprites and other objects etc.

  • Ashley

    could you add clipping or masking to the sdk?

    V1 had it but was removed for sdk v2.

    Thanks.

  • you can go back to an earlier version here. Scroll down to the bottom of the page.

    construct.net/en/make-games/releases

  • You are correct in that a property is like a value, but properties are applied to all files. It works like an array. You can set or alter the property of a specific file but you need to pick the file, if no specific file is picked it applies the changes to properties of all files.

    A file could be a character, and each property could be what's in their inventory.

    If you add the property apples, every character gets apples. You need to pick the character if you want to set only their number of apples.

    If you want a multi depth array then you need to add more than one plugin to your project.

    What are you trying to do?

  • This is brilliant. Great job!

  • Its a neat look. Its a bit beyond the ability of this plugin.

    Thanks for the link, its fun to play with to see how i can improve my new plugin.

  • No problem. Glad you found a solution.

    I've added toggle support since it wasn't much trouble and will update the plugin and example.

    What is this new morphism look? Do you have an image?

mOOnpunk's avatar

mOOnpunk

Early Adopter

Member since 29 Mar, 2017

Twitter
mOOnpunk has 8 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

19/44
How to earn trophies