1
Ask a Question / Actor collision on tiles.
« on: May 31, 2020, 04:02:31 pm »
Hi all,
So I'm working on a platformer game, and I'm having an issue with how the player actor is colliding with the tiles in the levels.
I have 3 animations, with 2 directions (using the run-jump behaviors that come with stencyl) and when the player is colliding with the tiles (ground) its supposed to be set to the idle animation. However the actor starts jittering between the idle animation and the jump animations. Even when walking/running it constantly jitters between the 2. The only time this doesn't happen is if my character actually manages to Jump, and then that animation plays accurately,
Of course once the actor lands back on the tiles, the jittering resumes.
I've tried making the tiles have collison shapes, and set them to no collision and used terrain shapes.
The player is set with Normal actor type and normal actor collision (box2d).
I've tried googling for similar problems and haven't had much luck.
If anyone has an idea, any help would be greatly appreciated.
So I'm working on a platformer game, and I'm having an issue with how the player actor is colliding with the tiles in the levels.
I have 3 animations, with 2 directions (using the run-jump behaviors that come with stencyl) and when the player is colliding with the tiles (ground) its supposed to be set to the idle animation. However the actor starts jittering between the idle animation and the jump animations. Even when walking/running it constantly jitters between the 2. The only time this doesn't happen is if my character actually manages to Jump, and then that animation plays accurately,
Of course once the actor lands back on the tiles, the jittering resumes.
I've tried making the tiles have collison shapes, and set them to no collision and used terrain shapes.
The player is set with Normal actor type and normal actor collision (box2d).
I've tried googling for similar problems and haven't had much luck.
If anyone has an idea, any help would be greatly appreciated.