rotate collision mask

Hello. I wanted to suggest that they add a tool to flip the collision masks horizontally and vertically if possible. Maybe it will be useful, well for me right now it is xD

Hi TamaraErica. Can I ask why? What are you doing?

Collisions can be set even per single sprite and it doesn’t change if the sprite rotates (“angle”) or is flipped (with the action “Flip the object”).

I think collisions are pretty versatile. Let me now if I haven’t misunderstood you.

In my particular case, the game that I am developing is with an isometric view. I made a fire coming out of a tube, diagonally down to the right, so I made another fire sprite copying the first one and flipped all the animations down and to the left. It would have helped if the collision mask could also be rotated. But anyway I was able to do what I wanted, although with more work.

1 Like

In my particular case, the game that I am developing is with an isometric view. I made a fire coming out of a tube, diagonally down to the right, so I made another fire sprite copying the first one and flipped all the animations down and to the left. It would have helped if the collision mask could also be rotated. But anyway I was able to do what I wanted, although with more work.
I think you mean the events section. I did not try it like this because in the editor the changes would not be seen, and only in preview, so that in the editor all the fire sprites would point to the same side. However, I don’t know if rotating the sprite from the events section also rotates the collision mask, from what I understand and from the Google translator, I understand that the collision mask does not rotate.

Collision boxes do change as the object rotates or flips. To see it in action, turn on debugging:


Here’s a quick example. The red outline is the collision box (the top part is slightly off centre to the left and pokes out of the image a little). First is the object vertically flipped. Second is object horizontally flipped. Third is object rotated 45 degrees:

image

1 Like

Thanks, I think it’s the best.