Inspector and Sprite Rotation in Scene Editor Ignore Sprite Origin?

Fool

  • Posts: 88
From what I can see thats the case. Sprite origin is set to bottom right for the given actor (I'm having a character 'swing' onto the screen) and when I try to manually set the angle in the inspector panel (and likewise rotate the actor by hand) it simply rotates around the center instead of around the bottom right origin.

What am I doing incorrectly, if anything?

Luyren

  • *
  • Posts: 2805
From what I can see thats the case. Sprite origin is set to bottom right for the given actor (I'm having a character 'swing' onto the screen) and when I try to manually set the angle in the inspector panel (and likewise rotate the actor by hand) it simply rotates around the center instead of around the bottom right origin.

What am I doing incorrectly, if anything?
I think origin point only applies to rotating in-game. Since you are already rotating the actor "by hand", you can then just adjust its position afterward "by hand."
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Fool

  • Posts: 88
"I think origin point only applies to rotating in-game."

Ah, I see. Wasn't aware. Makes it difficult to determine exactly where I need to place my actor in the scene, relative to it's rotation, so that it ends up at the correct position after rotating during gameplay.

You know if rotating based on custom origin point in the scene editor is planned or roadmapped?

squeeb

  • Posts: 1617
"I think origin point only applies to rotating in-game."

Ah, I see. Wasn't aware. Makes it difficult to determine exactly where I need to place my actor in the scene, relative to it's rotation, so that it ends up at the correct position after rotating during gameplay.

You know if rotating based on custom origin point in the scene editor is planned or roadmapped?

Inspector panel??   You can set the origin point in stencyl in the animation section of actor..... center.. top left top right ect..  I think every animation has an origin point for the actor that needs to be set.. OR you can change the origin point manually with grey code blocks and write your own code in them... someone's done it before..  theres issues with doing it that way though

Luyren

  • *
  • Posts: 2805
"I think origin point only applies to rotating in-game."

Ah, I see. Wasn't aware. Makes it difficult to determine exactly where I need to place my actor in the scene, relative to it's rotation, so that it ends up at the correct position after rotating during gameplay.

You know if rotating based on custom origin point in the scene editor is planned or roadmapped?
I don't think it is, but don't quote me on that.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.