A code block to set the Origin Point of any actor at runtime.

LIBERADO

  • *
  • Posts: 2719
It seems odd that there is a block to set the pivot of an image instance at runtime, but not of an actor.
I think this block would be very useful to set the pivot (Origin Point) for growing and rotating any actor:

« Last Edit: December 27, 2014, 06:55:43 am by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

ErLuiSS

  • Posts: 125
I like that idea! I hope to be added


yoplalala

  • *
  • Posts: 1633
Is there a way of doing it with code ?

ETHproductions

  • *
  • Posts: 430
Try this code, in an actor behavior or event:
Code: [Select]
actor.setOriginPoint(x, y); // Replace x and y with the X and Y of the origin point
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

yoplalala

  • *
  • Posts: 1633
Thanks ETH ! Worked perfectly !