How do I remove movement stutter?

Get help using Construct 2

Post » Sun Nov 20, 2016 12:42 pm

Hello again.

So I'm making a platform game, everything is going well, but, whenever I jump while standing and land on the ground, the character switches between animation / just stutters until I move him left or right. This also happens when I land on the edge of a platform.

So, what's the problem?
B
7
Posts: 34
Reputation: 345

Post » Mon Nov 21, 2016 7:54 am

Are you using the platform behavior for your player? If not, your player may be having an issue with frame rate dependence, which can cause odd stuttering.
https://www.scirra.com/tutorials/67/del ... dependence


If you could post the capx I may be able to help
B
17
S
2
Posts: 37
Reputation: 906

Post » Mon Nov 21, 2016 1:13 pm

Message: Vodakman can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Yeah, here's the link: https://www.mediafire.com/?b58f7hg5dstj5ze
B
7
Posts: 34
Reputation: 345

Post » Mon Nov 21, 2016 2:30 pm

the collision points of the animation ID FALL at the bottom weren't exactly at 26, I set them exactly and the stutter is gone, I still recommand to use a dummy rectangle object for the collisions and to pin the player animations on it to prevent those kind of issues, still searching for the stutter on the edge

EDIT: I think it, once again, has to do with collisions, ID FALL is a little larger to the left, so when the player is not on the floor, it trigger the falling animation, but then the hitbox is larger, so it triggers back on the floor, and so on, again, this kind of issues could be avoided using a rectangular, invisible, fixed size object that has the behavior platform and pinning the player sprite animations on it.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Mon Nov 21, 2016 3:08 pm

Aphrodite wrote:....this kind of issues could be avoided using a rectangular, invisible, fixed size object that has the behavior platform and pinning the player sprite animations on it.



...as recommended on Page 4 of Ashley's own How to make a Platform game tutorial:

The Platform behavior can take care of the complexities of platform movement for us. However, there's one important tip for using it: the behavior should be applied to an invisible rectangle object, and the player positioned on top. The Platform behavior works much better if the object with the behavior doesn't animate, since changing animation frame can leave the object partly sticking in to a wall which can confuse the Platform behavior. Also, it avoids silly collision situations like your player hanging off a ledge by their nose or something they're holding.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,414
Reputation: 59,512

Post » Tue Nov 22, 2016 12:08 pm

Thanks zenox, now it works.
B
7
Posts: 34
Reputation: 345


Return to How do I....?

Who is online

Users browsing this forum: ST314 and 31 guests