Collision masks may end up being overwritten by the animation frame if you create it first. However, you can just copy and paste the collision mask back later.
I can do that, but how do I do it without the collision mask being slightly in a different place in each frame? Like, how do I get it precisely in the same spot for each frame?
yes, you need a collision mask for each animation frame, but it will be generated automatically when you edit it if you do not have a custom one.
Hmmmm... I'm not entirely certain what you mean here. Are you saying that there is no way to just create one collision mask and then make it automatically appear on each frame?
OR
Are you saying that if I create one collision mask, and then edit the collision mask it will generate itself for every frame?
I'm confused.
The hotspot is the "centre" of the sprite, the point that you pull X and Y values from. This is also the point that the sprite rotates around.
So does this mean that I should always use a hotspot for an animation? And should I always center the hotspot in the middle of the character model unless I want the model to bounce when it moves in some frames?
Image points are handy for attaching objects to each other, for example in an action game you can attach a gun to the players hand by having an image point there that moves with each animation frame. They also rotate with the sprite.
I'm able to attach a gun to the player this way, but I can't get the gun to stay on the players image point. In fact, the gun goes right to the top of the players head for some reason. I'm doing something wrong but I don't know what exactly.
Sadly, image point collision only works for the hot spot I think.
I'm not sure what you mean. Can you elaborate on that? I've made collisions between two characters using image points without using hotspots before. Are you saying that I should always use both together if I'm using image points for collisions?
However, you can choose three different collision modes "per pixel", "bounding box", and "image point". Collision masks are only used in per pixel mode.
So if I'm going to use image points for collisions, I don't have to use a collision mask?
Also, what is a "bounding box"?