Animations issue

This forum is currently in read-only mode.
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Hi,

    The video below (nearly at the end of the video):

    shows how the animation 'Fall' alternates with the animation "Idle' instantly without having any key pressed.

    The player is a simple object with a platform behavior and the crate a simple solid object. I have not implemented events concerning the player control and his animations.

    I don't know how to avoid this. Any idea?

  • Hi,

    The video below (nearly at the end of the video):

    shows how the animation 'Fall' alternates with the animation "Idle' instantly without having any key pressed.

    The player is a simple object with a platform behavior and the crate a simple solid object. I have not implemented events concerning the player control and his animations.

    I don't know how to avoid this. Any idea?

    I'm having this issue as well whenever my sprite (MegamanX) stops wallsliding or jumping at an intersection with two platforms or boxes the same thing happens, it alternates between jumping and standing sprites for some stupid reason. I guess it's because I'm using collision by pixel instead of bounding box or whatever... so that might be what's causing it with yours.

    Not sure though, only been using the program for about a day and a half now, lol. Good luck.

    [edit]

    Actually, just went in and did some tinkering, and pixel and bounding box do the same thing. It wasn't till I set Megaman's Collision to by "point" that the problem stopped. Try that, you might have to alter where your points are, but it should work.

  • Are you using a "collision box" for your player, or does your player sprite handle the collisions? Looks to me like your player sprite handles collisions itself, per pixel, which would have it's arm cling on to the platform when it's falling off of it - creating the problem you're having.

  • Ah well, Tokinsom said it already but since I typed all this...

    Hi,

    The video below (nearly at the end of the video):

    shows how the animation 'Fall' alternates with the animation "Idle' instantly without having any key pressed.

    The player is a simple object with a platform behavior and the crate a simple solid object. I have not implemented events concerning the player control and his animations.

    I don't know how to avoid this. Any idea?

    Always use a dummy sprite handling the actual collisions (or the collision mask feature). My guess is that you're handling the collision directly with your player sprite, which changes in size from frame to frame. Therefore the collision box changes each frame too. And since there's a significant change in the size of the Falling and Stopped animations, it results in the jerkyness you've shown in the video when standing near an edge.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Are you using a "collision box" for your player, or does your player sprite handle the collisions? Looks to me like your player sprite handles collisions itself, per pixel, which would have it's arm cling on to the platform when it's falling off of it - creating the problem you're having.

    I use the "per pixel" method. Finally I found what was the problem:

    I did use of a collision mask only for the first frame of the Idle animation. I pasted the same collision mask to all frames and for all animations. Now everything works fine.

    BTW: the method described in the video below is not working for me (0.99.91)

    Subscribe to Construct videos now

    After the "Copy Collision mask to each frame" operation, the collision mask of the HitBox is deleted and nothing happens to the other frames. I had to paste the collision mask manually to all frames

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)