[Req] Sprite crop param (e.g use ext spritesheets)

0 favourites
  • 2 posts
From the Asset Store
A set of 10 pixel art animated magic effects with icons. 2 Fire, 2 Earth, 2 Wind, 2 Water, Portal, Explosion.
  • Hi, this is a follow-up to this topic

    I'm on a project where I need to load external sprite sheets for the main character, and because the player can choose between thousand of them, I can't really use the built-in sprite strip importer...

    Here is the upgraded sprite component I need:

    <img src="http://i.imgur.com/gW4Mc.png" border="0">

    To do this:

    <img src="http://i.imgur.com/vlXiQ.png" border="0">

    Then I just have to load images from URLs into the sprite, and change the "Crop origin" parameter through events to create my animation from scratch.

    If you follow the link I posted above, I made a working prototype using an animated "mask" with blend modes instead, but it's not that good for performance, and adds a bunch of problem with layer ordering.

    Now I don't know if this is possible with a plugin, but it could be quite powerful for a few other stuff, like loading enemy sprites as the player progress through levels, or opening new animations possibilities

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'll just bump this and paste the link to my "workaround mask" demo here directly

    SpriteAnimDemo.capx

    TOP LAYER

    • props sprites unaffected by the mask

    MASK LAYER (+ force own texture YES)

    • bg sprite (+ SOURCE OUT blend mode)
    • mask area

    BG LAYER

    • character sprite
    • bg sprite

    As you can see, one of the main problem, beside performance drop, is that I can hardly move the character layer on top of any props without dedicated crop tools...

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