Need help with enemy

What will i do by using custom collision box? The coalition box already covers the whole sprite. How whould i use cover The whole sprite else way?

Check the collision box for the animation you circled in the image in your first post.

It’s better to add a new image to the new post you make. Updating the initial post will lose the context of what the other posts are referencing.

1 Like

Can i ever get a solution i am stuck

The problem is with the collision box and origin of each of the attack animation frames. The origin is the point of the sprite that is placed at the sprite’s X & Y co-ordinates.

Here is the origin in the first frame of the attack, the orange dot. Notice how it’s at the enemy’s belly button:




And here it is on the 5th frame, to the left of the character image and at it’s head height:

This means the attack animation starts off above ground, but the image is lowered because the origin has changed relative to the image of the character.

To fix this, you’ll need to move the origin to it’s at the same spot on the character in the image for every frame - move it to the character’s belly button area.


Then there’s the collision boxes. These are what the platform character uses to stay on top of the platform, so the platform will appear along the bottom of the collision box. For the first animation frame, the bottom of the collision box is lined up with the bottom of the character’s feet:




However, a few frames later the collision box is no longer lined up with the character. Remember the platform appears at the bottom of the collision box, so the character will appear to sink into the ground:

The fix here is to make a custom collision box that fits better.

1 Like

One question should the custom colition box will only be for one animation or all the animations?

For which ever animations require it.

1 Like

Hey there sorry i know this all because i am a failure but i tried and now the enemy goes up instead of going in the ground. I tried messing with origin point and center point but nothing worked i am very frustrated. Do you think it’s possible for you to solve it for me
Thank you

And even if you don’t solve it you have done very much for me.thank you again

Can you screen shot the 5th frame of the attack animation and the changes you have made to the origin and the collision box? So that will be 2 screen snips.