From 08d0232e37c44efe24dc78d89f793df9751c2fb9 Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sat, 29 Jan 2022 22:13:47 -0800 Subject: [PATCH] Set pivot --- Engine/src/shared/sprites.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Engine/src/shared/sprites.ts b/Engine/src/shared/sprites.ts index aa2051e..2cd5b4b 100644 --- a/Engine/src/shared/sprites.ts +++ b/Engine/src/shared/sprites.ts @@ -54,6 +54,8 @@ export class SpriteInstance { s.x -= this.frame.originX s.y -= this.frame.originY this.container.addChild(s) + this.container.pivot.x -= this.frame.originX + this.container.pivot.y -= this.frame.originY } }