79339482

Date: 2025-01-08 14:16:25
Score: 0.5
Natty:
Report link

There is an option to set the pivot point of the sprite similar to css "transform-origin".

In case we need a label to be on top of the object, the y should be negative, e.g. -0.35 on the screenshot below and up to -1:

    sprite.center.set( 0, -1 );

enter image description here

Works for r146 (probably other versions as well)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Solovyev