Spriter + C2 problems

Discussion and feedback on Construct 2

Post » Sat Sep 07, 2013 5:56 pm

So i've experimented with Spriter and imported a character into C2, up to that point, everything is fine. From there, i added a 2nd frame to the front arm (in C2), painted red. It seems that no matter what, whenever the red arm shows, it reverts back to default immediately. Setting a looping animation does not make the arm blink at expected speed.

On top of that, the pivot point appears wrong when the red arm shows. I also pinned a sword to that arm (in case it matters, i added the sword in C2, not in Spriter), the pivot point is wrong as well, though it matches the red arm's position, orientation, etc. I suspect when i duplicated the original arm frame in C2, some Spriter data did not carry over?

I also have problems with z-ordering, though it may have to do with containers. While editing the layout, the sword appears behind the front arm, yet when running the project, the sword's z-order seems relative to the spriter object. In other words, it appears either fully in front of the character or fully behind. I'd really like to have it behind the front arm but on top of the rest of the character.

What i'd like to achieve with all this is to use a single set of animations, made with Spriter, for all creatures of the same type (in this case, humanoids), using multiple C2 animation frames. Is this currently possible and i'm doing something wrong? If not are there any plans to make this possible?

Here's my .capx, requires the Spriter plugin.
http://www.mediafire.com/?yr6sfg569a1gimy
B
8
S
2
Posts: 18
Reputation: 611

Post » Sat Sep 07, 2013 10:59 pm

I apologize for not looking at the CAPX. However what you want is Spriter Character Mapping. Character Mapping is the PRO version of Spriter, but not yet implemented in the plugin.

I am also now critically requiring the Character Map for the plugin. So I know what your looking for.

Trying to mix and match Spriter animation and non Spriter animation is going to give more of a headache than it's worth.

My suggestion is to nicely request @lucid to get the C2 plugin character map going.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Sat Sep 07, 2013 11:56 pm

Spriter animations are their own type, not to be mixed with C2 animations in the same frame.

Until the character mapping (Pro Feature) is implemented your option it to create alternate versions of the animations in the other colors and switch between them as needed.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Sun Sep 08, 2013 1:02 am

Thanks for the replies guys. I've considered duplicating animations and replace images in Spriter. Not the best solution but it sounds like it is the only one we have for now. I'm not sure what character mapping is supposed to do, but if the C2 plugin is updated, i will get Spriter pro for sure. I might even get it anyway. So for now i'll follow jayderyu's suggestion *nicely requests @lucid to get the C2 plugin character map going*
B
8
S
2
Posts: 18
Reputation: 611

Post » Sun Sep 08, 2013 9:54 am

@Alpro, for now just export the key frames as png and use it in Construct ?
B
76
S
22
G
14
Posts: 389
Reputation: 12,249

Post » Sun Sep 08, 2013 3:02 pm

@tumira:
Wouldn't that create very unsmooth animations? Pretty anims is one of the reasons to use Spriter in the first place. That is still better than nothing though. To tell the truth, i do not yet have a project, i'm only checking what options i have to do what i have in mind. Spriter wins over Canvas for now.

It seems we forgot about the z-order problem, anyone know if it is caused by the spriter object, the family or the container? I don't think families have to do with it, it would make no sense, right?Alpro2013-09-08 15:06:41
B
8
S
2
Posts: 18
Reputation: 611

Post » Mon Sep 09, 2013 9:46 pm

The z-order thing happens because the scml plugin manages the zorder of each sprite, and does what it needs to to keep the relative zorder from Spriter, so this extra sprite is getting pushed out.

Character Maps will automate the process of part replacement:
[tube]http://www.youtube.com/watch?v=NufHCAHrEdw[/tube]
Once the plugin supports character maps, you'll be able to apply and stack these by name. I'm working on completing the next build of Spriter at the moment, and after that's done I'll update the plugin to the latest editor featureset.

There are other features coming to the plugin that will help with integrating scml objects with the rest of c2's arsenal that will help make things work together alot more naturally
Spriter Dev
B
99
S
21
G
12
Posts: 3,259
Reputation: 16,894

Post » Tue Sep 10, 2013 3:10 am

Oh that is great! And yep, this sounds like exactly what i need, thank you lucid.
B
8
S
2
Posts: 18
Reputation: 611


Return to Construct 2 General

Who is online

Users browsing this forum: lukewasthefish and 7 guests