Apply effect to group of sprites

0 favourites
  • 6 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Hey there,

    I may be overlooking the simplicity of this, but I'm wondering if there is a way to group objects together (eg. Containers, families) that will allow me to apply an effect to the entire group.

    For example, I'm trying to make the WebGL outline effect (plugin) outline the silhouette of a character composed to different sprites (hair, body, eyes, clothes). So far I've figured out I'm able to do this with layers, but if I do this, it would mean I need a different layer for each character I want to apply the effect.. At different timings.

    Anyone have a better solution?

  • Rory

    Yes, you can add effects to families, if you go into your "projects" tab and select the family (create one if need be), then with it selected in the projects tab you'll see options for the family in your properties window on the left.

    add the effect to the family there and then use events to enable/disable it..

    Hope that helps buddy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Unfortunately.. I tried it out but it doesn't work the way I want it to. I want the effect to be applied to the family as a collective sprite. This is how the method you suggested turns out.

    This is how i want it..

  • In your case, you'd maybe want to apply the effect on a layer instead

    EDIT: I missed a part of your first post, my bad, but I still think layer are the way to go, maybe there is a better solution.

  • Outline need opacity

    sprite without transparent border

    Sprite with 1px transparent border

    So you could try drawing your sprite parts without transparency where they should connect

  • Ahh, I see what you are after, I can't think of any perfect way to achieve this using effects, shinkans idea is great but I'm guessing it won't work with non-square images, like the hair you have, you want the fringe to not have a border, but the tips on each side increase the height of the sprite causing the fringe to have a larger space of transparency beneath.. so the bottom of the tips wouldn't have an outline, but the inside would..

    Off the top of my head, You could try doing this with Animation Frames, it's the longer way around, when condition is true > goto frame 2 which you have drawn the border sections in manually..

    ....

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