Physics Animations Slow

Get help using Construct 2

Post » Wed Apr 10, 2013 1:13 am

Hi guys!

Just wondering if anybody can tell me why my game slows down if an object with physics if it plays an animation?

It just seems odd. I've tried to set it so that the collision polygon is the same throughout, but it does seem to automatically stretch every now and then to fit the character. This would make more sense to me if the object was touching a wall or something while it is animating, but it's just falling down.

Maybe it's just my PC. Can anyone else check this for me? Just load up the game and click somewhere on the screen.

Game Link
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360

Post » Wed Apr 10, 2013 1:56 am

I dont really know what you mean by "my game slows down", but I have tried your game and your game plays just fine without slowing down. But I notice that the object slows down a bit when it plays the animation. Once it's over, it's normal again. I compare it by creating another physics object without animation, and the new object falls faster than the old one.
nothaseo2013-04-10 01:57:35
B
41
S
9
G
4
Posts: 100
Reputation: 6,211

Post » Wed Apr 10, 2013 8:52 am

I think THIS POST from Ashley answers your question.

Basically, as Ashley has/is always saying, use an invisible sprite with the relevant behavior and pin the animated character to it.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,850
Reputation: 48,301

Post » Wed Apr 10, 2013 10:47 am

Interesting... using this method I have been able to keep the speed up, thanks! What an unusual bug. Oh well, only required a couple of extra lines :)

Thanks a lot!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests