share a single collision poly across all ANIMS?

Get help using Construct 2

Post » Wed May 30, 2012 6:08 pm

Hi,

Often its useful in a game for an object to have the same exact collision mask across all frames of all animations. I see you can tell Construct2 to share a collision poly across all frames in the current anim, but what about across the entire object (all animations)?

Right now I've got bugs caused by the fact that I've got collision poly differences between animations.

Is there a way to solve this (without using a second sprite as a collision mask for all objects?) If it does not yet exist, can this feature be added?

thanks
B
46
S
8
G
4
Posts: 414
Reputation: 6,830

Post » Wed May 30, 2012 6:26 pm

+1 for sharing collision polygons, imagepoints and origins across all frames in all animations. I would have needed this feature a lot.

by the way
@Brashmonkey: I'm dying to use a Spriter plugin for Construct2. I hope, there will be one soon.
B
18
S
3
G
3
Posts: 29
Reputation: 2,724

Post » Wed May 30, 2012 6:30 pm

cropping and resizing all frames in all animation (and by percentage) would be a nice feature too. ;)
B
18
S
3
G
3
Posts: 29
Reputation: 2,724

Post » Wed May 30, 2012 7:15 pm

Lucid's first priority is getting Spriter feature complete, rock solid and cross-platform at 1.0. I think we might have someone ligned up to help with the construct2 plug, but not sure. I'll ask Edgar.

cheers
B
46
S
8
G
4
Posts: 414
Reputation: 6,830

Post » Wed May 30, 2012 8:15 pm

I just realized, the reason The C2 dev's might not have added this feature is because imported frames are likely to have diferent sizes per animation (and frame too after cropping) and right now, the "use for all frames" option places the collision poly's based on raw x,y coordinates based on the top left of the image.

There's a simple solution though:

Use for all frames (top left)
Use for all frames (image point 0)
Use across all animations (top left)
Use across all animations (image point 0)

obviously this new option would place the collision polygon based relative to the image point instead of top left.

This would fix it for most people in most cases, even when each frame and anim is totally diferent sizes etc.
B
46
S
8
G
4
Posts: 414
Reputation: 6,830

Post » Wed May 30, 2012 8:16 pm

Otherwise, We'be be forced to make each frame of each animation exactly the same size which would be a huge waste of time and pain in the butt...
B
46
S
8
G
4
Posts: 414
Reputation: 6,830


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests