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

Post your work in progress addons and get feedback

Post » Tue Jan 01, 2013 7:50 am

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:


To do this:


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 possibilitieslemo2013-01-13 00:07:56
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Sun Jan 13, 2013 12:07 am

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...lemo2013-02-19 06:23:55
B
20
S
5
G
8
Posts: 325
Reputation: 6,473


Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests