Spriter/C2 update 11/2 bug fix for performance mode

Discussion and feedback on Construct 2

Post » Tue Aug 18, 2015 6:27 am

lucid wrote:Thanks @jojoe. We're going to make it eventually require only the scon file for the C2 plugin.

@Tylermon. You can set the entity and animation for each instance using the 'set entity' action, or the 'starting entity' in the object's property pane.


Ah, the property pane might just do the trick for now. Thanks.

Do you have any advice though on picking and working with the spriter object though?
It seems like a difficult object to work with when multiple entities and instances are involved.

I also noticed it does not seem possible to pick a spriter object based on entity. Which adds to the complications. Hopefully I am just overthinking this or overlooking something obvious. It just seems a spriter project with multiple entities and animations is nice to work in and animate in spriter. It seems near impossible to work with once in C2 though.
B
23
S
7
Posts: 211
Reputation: 2,105

Post » Tue Aug 18, 2015 10:16 pm

Hi @Tylermon. You could compare using the 'entityname' property, but to make things easier I updated the plugin with a Compare Entity condition:

8/18/2015
  • Added "Compare Entity" condition to check what the currently set entity is.
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Aug 18, 2015 11:12 pm

lucid wrote:Hi @Tylermon. You could compare using the 'entityname' property, but to make things easier I updated the plugin with a Compare Entity condition:

8/18/2015
  • Added "Compare Entity" condition to check what the currently set entity is.



Hopefully that should help. Thank you for such quick support!

I'm not at my computer right now, but does the new compare entity support picking objects/instances.
I believe constructs regular compare values condition didn't allow object/instance picking so I was at a loss.

Otherwise I'm stuck with a for each loop which isn't very efficient.
B
23
S
7
Posts: 211
Reputation: 2,105

Post » Wed Aug 19, 2015 1:19 am

@Tylermon, Yes, it picks based on comparison.

You won't need it for entities anymore, but for future reference, the system condition 'Pick by comparison' would have also worked :
Image

There's also a few other System conditions under 'Pick instances' that can come in handy for the rare cases when a plugin or behavior doesn't directly support what you need.
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Sep 11, 2015 2:33 am

Just a friendly reminder to folks using spriter as I am in construct 2.

Don't use spriter for everything, it's a cpu hog.

Use it as a way to quickly customize main sprites (characters) and definitely not for background and landscaping.

I thought using spriter as a way to quickly change tiles on the fly is a great idea until my system lag like a turtle due to huge CPU consumption due massive amount of objects on screen since each spriter object is a container containing ALL options in it.

Then consider the fact that I use 32x16 tiles to fill an 960x540 screen. IIRC, 10000 objects was created.

Learn from my mistake and save your time.
B
36
S
18
G
11
Posts: 248
Reputation: 8,694

Post » Fri Sep 11, 2015 9:28 pm

Sadly I concur, I have two simple characters per level and when they're both on screen at once there is a noticeable fps hit on slower devices I didn't get with sprite sheets.
I wonder if it's possible to not have the animations update every tick??
Overall I do love spriter/C2 integration :)
B
13
S
4
Posts: 65
Reputation: 875

Post » Fri Sep 11, 2015 11:51 pm

@Sethmaster and @majestickAsFk.

It is true the current plugin is not well suited to creating full tilemaps, though of course it could definitely be used to create individual moving background elements. There are a couple of things you can do in other game scenarios to aid with lightening the cpu load. One is to separate your characters to separate files - If you have several characters in the same file, then all of those parts for all the characters will be loaded for each instance of your scml object. Keeping each character in its own file will keep the object creation to a minimum. Another way is to use the 'Set Automatic Pausing' action. This let's you choose a pixel padding to create a box around the x,y location of the scml object where it will pause animation playback if that box goes off screen. This will have a big impact if the majority of your animated objects are off screen most of the time. If you have trouble getting it working, let me know and I will explain it in more detail, but basically you use the action once on each instance, rather than every tick.

Lastly, I'm a bit behind on a few ETAs at the moment, so I won't venture a guess as to exactly when, but I plan to eventually make the plugin so you have the option to use separate objects for each part (as it does now), or one object that does all the painting itself. This would give you the option to tradeoff the ability to access individual parts as C2 objects or the reduced overhead of a single object.
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Sep 12, 2015 10:32 am

Thanks for the reply @Lucid, the single object processing certainly sounds interesting :)
My (probably naive) thinking was the animations could be processed every, say, 5 frames and trade-off smoothness for speed (as an option).
B
13
S
4
Posts: 65
Reputation: 875

Post » Mon Sep 21, 2015 1:13 pm

Just checking in to ask about in-game animation manipulation - being able to have character point their arm at the mouse x/y would be amazing.

Any news?
B
49
S
14
G
3
Posts: 540
Reputation: 5,611

Post » Mon Sep 21, 2015 4:30 pm

Unfortunately we're still backed up and behind schedule for the generic reference implementation, and until that's finished Edgar can't really do anything more than simple bug fixes for the current version of the Spriter Plug-in.

You can keep track of the progress on the reference implementation here: http://brashmonkey.com/forum/index.php? ... e-9202015/

cheers.
-Mike at BrashMonkey
B
46
S
8
G
4
Posts: 414
Reputation: 6,830

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: rekjl and 12 guests