Rendering Sprites By Line

From the Asset Store
solution for games like "fruit ninja" and drawing applications
  • Is it possible to manipulate sprites by line or pixels? Is there an effect or plugin something that can do this? Using an example here (done by sliding a solid white sprite on a solid white background)

  • You could try using blend modes using the approximate method of the gif.

  • Smedis2

    There is no simple way, so, like Newt said, using blend modes can give you the effect you want. To do that you have to put the sprite on a layer that forces its own texture, then put a "mask" sprite that has its blend mode set to Destination Out on top of the mummy sprite. The mask sprite has to be on the same layer...

    I made a quick demo... http://www.rieperts.com/games/forum/MummyReveal.capx

    I tried it 3 different ways:

    1) Reveal - just like your sample, the mask lifts up.

    2) Pop up - where the mummy pops up from behind the mask

    3) Adjusting the Height of the mummy from zero to 100%. This method does not need a mask. or a layer that forces its own texture but might not look as nice. It sort of looks like the image was lying down flat and "flips" upright...

  • Well, this (particular one) is easy to do in the image editor.

    Open the sprite in the image editor. Window showing the animation frames should pop up too.

    Assuming that there is only 1 frame.

    Right click that frame .. choose Duplicate. Select that duplicated frame.

    Select the Rectangle Tool in the image editor, Right click/drag the first line of pixels away.

    Right click that frame in animation window .. choose Duplicate. Select that duplicated frame.

    Select the Rectangle Tool, Right click/drag the first line of pixels away.

    and so on .....

    Reverse the frames.

  • Smedis2

    Simplest way I can think of is to use a TiledBackground for the image and adjust it's Height over time

    capx (r244)

    Once fully loaded you can replace it with a Sprite, if that's what you need. I've just set it to loop for the example.

    Note: I use negative values for the Height to render from bottom to top

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you all for your answers! All of these seem close the ideas I had in mind. I was wondering if there was an in-engine way of messing with the way sprites are drawn, but these will work too.

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